3d volumes

15 views
Skip to first unread message

newbie43

unread,
May 4, 2012, 10:45:56 AM5/4/12
to ruby-dicom
Im new to dicom but is possible to use ruby-dicom and rmagick to
display a dicom volume set.

Christoffer Lervåg

unread,
May 4, 2012, 11:37:36 AM5/4/12
to ruby-...@googlegroups.com
Yes, this is possible, as you can see in the documentation:
http://rubydoc.info/gems/dicom/DICOM/ImageItem#images-instance_method

obj = DObject.read(file)
images = obj.images
images.each_with_index do |image, i|
image.write("frame_#{i}.jpg")
end

Best regards,
Chris
Reply all
Reply to author
Forward
0 new messages