Viewer Dicom Cloud

113 views
Skip to first unread message

Ricardo Pontes

unread,
May 7, 2012, 1:41:26 PM5/7/12
to ruby-...@googlegroups.com
Hello,

I want make a viewer on web to show images DICOM.

Anybody know a example or way  to make?

Thanks...

--
Ricardo Pontes da Silva

Christoffer Lervåg

unread,
May 7, 2012, 2:26:45 PM5/7/12
to ruby-...@googlegroups.com
Hello Ricardo


Let me divide your task in 3 parts:

1. Decide what web framework to use. In Ruby, the most popular by far is Ruby on Rails. I would recommend to go with that. Another option is Sinatra, and there are probably others as well.

2. Extract image (and possibly other information as well) from the DICOM file.
This is where ruby-dicom is used, e.g.:

  dcm = DICOM::DObject.read('file.dcm')
  image = dcm.image
  image.write('dicom.jpg')

3. Display your dicom-image in the web page. In Rails this is handled with code in your controller and view. This is a straight Rails-problem (i.e. not related to ruby-dicom). I don't have an existing project or tutorial on this, so I can't help you any further, but it is not difficult to find this information elsewhere. Note that in Rails you are not forced to save to an image file before displaying, it is also possible to transfer the image information in memory to display it in the view.

Best regards,
Chris

Ricardo Pontes

unread,
May 7, 2012, 2:50:39 PM5/7/12
to ruby-...@googlegroups.com
To open and convert to jpg I know. But I want make zoom, windowing and another things with image.
 
I guess need use JS to manipulate and use ruby only to manage.

Thanks....


2012/5/7 Christoffer Lervåg <chris....@gmail.com>

Christoffer Lervåg

unread,
May 7, 2012, 4:41:21 PM5/7/12
to ruby-...@googlegroups.com
I recommend searching for some general javascript image processing
libraries, or perhaps something like html5 + dicom.
I am not yet aware of anyone publishing any work on a web viewer using
ruby-dicom.
If anyone else in the community knows of something, let us know.

Chris
Reply all
Reply to author
Forward
0 new messages