Marius
Netherlands
21 Posts |
Posted - Feb 13 2013 : 10:41:38
|
I need to write a DICOM image file. That JPEG file needs to be a DICOM JPEG image. These can be objects of the following DICOM Transfer Syntaxes: -1.2.840.10008.1.2.4.50 (JPEG Baseline encoding) -1.2.840.10008.1.2.4.51 (JPEG Extended encoding) -1.2.840.10008.1.2.4.70 (JPEG Lossless encoding, Non-Hierarchical) Additionally, the JPEG files may contain one (monochrome) or three (RGB or YBR color) channels. JPEG files with four color channels are not supported.
Does ImageEn 4.1.0 support this? Am I on the right way with the following code, or is this miles away from the intended format?
AToolbox.Io.LoadFromFile(SrcFile); AToolbox.IO.Params.JPEG_Quality := 100; //No compression AToolbox.IO.SaveToFileJpeg(DstFile);
Thanks, Marius
|
|