Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dicom mpeg2 file

279 views
Skip to first unread message

brahma...@gmail.com

unread,
Oct 30, 2007, 3:13:54 AM10/30/07
to
dear group
i nee help on how to convert mpeg2 image to dicom file

plz help

Regards

Brahma

gunter zeilinger

unread,
Nov 6, 2007, 5:00:26 AM11/6/07
to
Command line utility 'jpg2dcm' of dcm4che-2.0.13 (http://
sourceforge.net/projects/dcm4che ) will also support encapsulation of
MPEG2 streams into DICOM Objects according DICOM Supplement 42 (ftp://
medical.nema.org/medical/dicom/final/sup42_ft.pdf ):

$ dcm4che-2.0.13-SNAPSHOT/bin/jpg2dcm -h
usage: jpg2dcm [Options] <jpgfile> <dcmfile>
Encapsulate JPEG Image into DICOM Object.
Options:
-bs <size> Buffer size used for copying JPEG to DICOM file, 8192
by
default
-c <file> Augment default configuration with specified
configuration file
-C <file> Replacing default configuration by specified
configuration file
-cs <charset> Specific Character Set, ISO_IR 100 by default
-h,--help print this message
-ts <uid> Transfer Syntax; 1.2.840.10008.1.2.4.50 (JPEG
Baseline)
by default.
-uid <prefix> Generate UIDs with given prefix,1.2.40.0.13.1.<host-
ip>
by default.
-V,--version print the version information and exit

Examples:
> jpg2dcm image.jpg image.dcm
=> Encapulate JPEG Image image.jpg into DICOM Secondary Capture Image
Object stored to image.dcm, including mandatory DICOM attributes
according
default configuration.
> jpg2dcm -c patattrs.cfg image.jpg image.dcm
=> Encapulate JPEG Image homer.jpg into DICOM Image Object stored to
homer.dcm, augmenting default configuration by configuration file
homer.cfg.
> jpg2dcm -C mpg2dcm.cfg -ts 1.2.840.10008.1.2.4.100 video.mpg video.dcm
=> Encapulate MPEG2 Video video.mpg into DICOM Video Object stored to
video.dcm, replacing default configuration by configuration file
mpg2dcm.cfg.

If you don't want to wait for release of dcm4che-2.0.13 at
sourceforge.net, you may download a SNAPSHOT version of the tool from
http://www.dcm4che.org/jira/browse/DCM-129 .

Because jpg2dcm does not support to read the MPEG header, you have to
specify values of Pixel Data encoding related DICOM attributes (e.g.
Photometric Interpretation, Samples per Pixel, Planar Configuration,
Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows,
Columns, etc.), consistent with the characteristics of the compressed
data stream, in the applied configuration file, additionally to values
for Patient and Study attributes (s. sample configuration file:
http://dcm4che.svn.sourceforge.net/viewvc/dcm4che/dcm4che2/trunk/dcm4che-tool/dcm4che-tool-jpg2dcm/src/main/config/mpg2dcm.cfg?revision=5296&view=markup
).
--
gunter

0 new messages