Convert DICOM to Binary Images

589 views
Skip to first unread message

Francisco Maria Calisto

unread,
Jun 10, 2017, 12:40:56 PM6/10/17
to cornerstone platform
Thank you for this great work.

I am trying to create and consume my orthanc DICOM Image server. My approach now have changed and I will try to convert the DICOM Images to Binary images like the exampleImageLoader.js example here.

Is it possible to convert them? And if yes, how can I convert them?

I know this is not the right approach.

Thank you again.

Faqous scan Faqous scan

unread,
Jun 11, 2017, 9:17:47 AM6/11/17
to cornerstone platform
What's the programing language you use?

php? js? java?

you can convert dicom to base64 encoded with any of those language.

Francisco Maria Calisto

unread,
Jun 11, 2017, 10:16:45 AM6/11/17
to cornerstone platform
Sorry: JavaScript.

How can I do that? I am using online tools and when I convert them the result is a black image with some white points. I do not know how to do it.

Thank you.

Rob Lewis

unread,
Jun 13, 2017, 1:21:54 PM6/13/17
to cornerstone platform
Hi Francisco,

Is base64 your desired output?  Are you trying to manually convert a few images so they can be embedded in a demo page or something?  Or are you trying to create some sort of pipeline that will convert DICOM images for use by some other code?  I ask because you can manually convert a binary file into a base64 encoded string using a tool like Notepad++ - you just load the file and there is a plug-in that you can run to produce the base64 encoded string.  If that's enough, give it a try and let us know the result.  Thx!

- Rob

Francisco Maria Calisto

unread,
Jun 13, 2017, 1:36:51 PM6/13/17
to cornerstone platform
Hello Rob, thabk you for your response.

Answering to your questions:

No, it is not my desired output, but since I have no time, and I already tried other solution, this will be my choice. I have my own DICOM images but when I convert them on online tools like or some online scripts, I copy-paste that code to the cornerstone example and it shows me a black image with some white pixels on the screen.

Thank you again for your questions. If you need more information please tell me.

Faqous scan Faqous scan

unread,
Jun 14, 2017, 6:48:26 AM6/14/17
to cornerstone platform
What do you need specifically?
what is your application about? and its data flow?

Francisco Maria Calisto

unread,
Jun 15, 2017, 4:19:00 PM6/15/17
to cornerstone platform
My application is a 3 simple DICOM Images where I put the Free ROI feature from in use. Simple as that. So in practice just want to to convert 3 DICOM Images and use it on the cornerstone exampleImageLoader.js.


Thank you.
Reply all
Reply to author
Forward
0 new messages