How about video?

29 views
Skip to first unread message

Yudong Li

unread,
Feb 9, 2012, 5:54:15 PM2/9/12
to ruby-dicom
Does ruby-dicom supports video, aka: Video Endoscopic Image Storage -
1.2.840.10008.5.1.4.1.1.77.1.1.1 ?

If it does, can anybody show a some sample code?

Thanks.

Yudong

Christoffer Lervåg

unread,
Feb 10, 2012, 10:04:10 AM2/10/12
to ruby-...@googlegroups.com
I have to admit I've never tried loading a dicom video file with ruby-dicom.
However, it should be perfectly able to retrieve the binary pixel data, the question is how you want to use this pixel data, and how to achieve that using ruby.

If the data is stored as image frames, you might be able to load it with RMagick:
obj.images.each do |image|
  image.display
end

Best regards,
Chris

Yudong Li

unread,
Feb 10, 2012, 8:28:06 PM2/10/12
to ruby-...@googlegroups.com
Hi Chirs

Thanks very much for all the effort you have put in to develop and maintain ruby-dicom gem.

I guess mapping each frame in a video to a frame in dicom might work.

But I was hoping to drop a endoscope video binary as a blob into dicom and hoping some dicom viewers can support the video codec and play the video as it is.

I am not sure that the dicom standard even supports such approach.

Yudong


2012/2/10 Christoffer Lervåg <chris....@gmail.com>



--
Yudong Li

Black Diamond Video
www.blackdiamondvideo.com
510-439-4554

Christoffer Lervåg

unread,
Feb 11, 2012, 6:44:33 AM2/11/12
to ruby-...@googlegroups.com
Yudong,

there are transfer syntaxes for pure video as well. I dont have any
experience with them, but I would guess that they would allow you drop
a video blob in the dicom file. I would recommend searching for such a
video dicom sample, analyze it and try to replicate it for your work.
Also you can have a look in the dicom standard to see what it says
regarding this video dicom files.

Chris

Reply all
Reply to author
Forward
0 new messages