How to use in Multiple Images or Multiple Sequences???

57 views
Skip to first unread message

KIRA KUCHIKI CLOVERFIELD

unread,
Aug 16, 2011, 8:28:09 PM8/16/11
to ruby-dicom
I've seen DICOM images that contain many images and that this
relationship between them forming a video sequence, opening one I can
not get the picture, is there any way to get that image or to generate
the sequence with ruby dicom. In advance thank you for your help if I
have served.

Christoffer Lervåg

unread,
Aug 17, 2011, 3:23:05 AM8/17/11
to ruby-...@googlegroups.com
Kira,
This information is found in the ImageItem documentation.

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

KIRA KUCHIKI CLOVERFIELD

unread,
Aug 19, 2011, 1:30:53 AM8/19/11
to ruby-dicom
Ok this example is 100% functional Mr Chris,other case I observe when
I move Studies at other PACS for example I have the PACS UBUNTU(using
DServer) and other PACS NEMA(using DCM4CHEE), and using one client for
realize the move taking the example of node in DClient, this node is
connected to NEMA, but when I use node.move_image('UBUNTU',options) or
nodem.move_study('UBUNTU',options) the console display: examples

1-Testing with a viewer called OsiriX send images to UBUNTU , the
sending is correct ; and using the client I send(using send()) to NEMA
is correct.


2011-08-18 23:32:25
Connection established with: tgt.lan (IP: ::ffff:192.168.1.69)
Accepted all 128 proposed contexts in the association request.
Received a release request. Releasing association.
All 2 DICOM files received successfully.


2 - Testing Failed

Client
>> node.move_image('UBUNTU','0020,000D'=>'1.2.840.113704.1.111.3692.1288188455.2')
Association successfully negotiated with host PACSINMOVIL
(192.168.1.69).
The presentation context was accepted by host PACSINMOVIL.
Failure! SCP has given the following reason: 'Identifier Does Not
Match SOP Class'.
Association released properly from host PACSINMOVIL.
=> false

UBUNTU no display nothing
*********************************

Client Conection
node = DICOM::DClient.new('192.168.1.69',
11112,:ae=>'ANY',:host_ae=>'PACSINMOVIL')

Christoffer Lervåg

unread,
Aug 19, 2011, 2:27:42 AM8/19/11
to ruby-...@googlegroups.com
Kira,

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

Reply all
Reply to author
Forward
0 new messages