11-19-2008, 9:31
|
lili
Joined on 01-16-2008
Posts 32
|
Re: About JPEG Lossy 12bits
|
 
 
|
|
|
There is no any error. After save, I dumped the header of it. I found transfer syntax was not changed.
The code I wrote is as the following.
LDicomDS Image;
Image.ResetDS();
Image.LoadDS((L_TCHAR*)srcfile, DS_LOAD_CLOSE);
pElement = Image.InsertElement(NULL, FALSE, TAG_PIXEL_DATA, VR_OB, FALSE, 0);
pBITMAPHANDLE phBitmap = saveImage.GetHandle();
Image.SetImage(pElement, phBitmap, IMAGE_COMPRESSION_NONE, IMAGE_PHOTOMETRIC_MONOCHROME1, 12, 0, 0, NULL, NULL);
Image.ChangeTransferSyntax(UID_JPEG_EXTENDED_2_4, 0, 0);//"1.2.840.10008.1.2.4.51"
Image.SaveDS((L_TCHAR*)desfile, 0));
|
|
|
|
|
Report
|
|
|
|