obj = DObject.new("multiframe.dcm")
images = obj.images
images.each_index do |i|
images[i].write("frame#{i}.jpg")
end
This works as long as the image is not using some kind of compression
that ruby-dicom is not able to decode.
Chris
I think the reason for your error is that you try to move an image, by
specifying it's Study Class UID. This is not logical. If moving an
entire study, you can use a Study UID, however, when moving a single
image, as in your example, you need to specify the SOP Instance UID
(0008,0018) instead. To verify that your PACS actually has the image
you want to move in its archive, I suggest that you try the
find_images method to see if you get a match. If you do, try the
move_image afterwards and see what happens. If you have properly set
up your UBUNTU server as a destination in your PACSINMOVIL server, you
should get a successful transfer of the file.
Regards,
Chris