Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

About JPEG Lossy 12bits
Started by lili at 11-18-2008 12:08. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  11-18-2008, 12:08
lili is not online. Last active: 10/7/2008 7:41:01 PM lili

Top 75 Posts
Joined on 01-16-2008
Posts 32
About JPEG Lossy 12bits
Reply Quote
I am using LTDic14N.dll(14.0.0.043 C++ ClassLib) .
When change transfer syntax to "1.2.840.10008.1.2.4.51", and want to save raw data to JPEG Lossy 12 bits in DICOM, I found I couldn't get it.
Could you tell me how to do?

Thanks.

Lei.
   Report 
  11-19-2008, 2:12
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,876
Re: About JPEG Lossy 12bits
Reply Quote
Can you please provide me with a code snippet that shows how exactly are you trying to save the raw data JPEG Lossy 12 bits in DICOM?

What is the error code that you get when trying to save JPEG Lossy 12-bit DICOM image?

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  11-19-2008, 9:31
lili is not online. Last active: 10/7/2008 7:41:01 PM lili

Top 75 Posts
Joined on 01-16-2008
Posts 32
Re: About JPEG Lossy 12bits
Reply Quote
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 
  11-20-2008, 4:29
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,876
Re: About JPEG Lossy 12bits
Reply Quote
I want to investigate more about this issue. Please send this issue to support@leadtools.com and mention this forum post in your email.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Annotations » About JPEG Lossy 12bits

Powered by Community Server, by Telligent Systems