Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: DICOM_ERROR_IMAGE - Improper image
Started by scanhand at 11-07-2008 2:48. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  11-07-2008, 2:48
scanhand is not online. Last active: 11/7/2008 7:44:44 AM scanhand

Not Ranked
Joined on 05-09-2007
Posts 1
DICOM_ERROR_IMAGE - Improper image

Attachment: Jpeg2000.zip
Reply Quote
I have a DICOM file that contains a JPEG2000 compressed image created by a GE MRI.

I'm trying to LDicomDS::GetImage() as in the following:


L_UINT nFlag;
L_UINT16 nRet;
BITMAPHANDLE LBmpHandle;
pDICOMELEMENT pElement;
LDicomDS LDS;

LDS.LoadDS("Jpeg2000.dcm", 0);

pElement = pDS->FindLastElement(NULL, TAG_PIXEL_DATA, FALSE);
if(pElement)
{
nFlag = DICOM_GETIMAGE_AUTO_APPLY_MODALITY_LUT | DICOM_GETIMAGE_AUTO_APPLY_VOI_LUT;
nRet = LDS.GetImage(pElement, &LBmpHandle, sizeof(BITMAPHANDLE), 0, 0, ORDER_RGBORGRAY, nFlag, NULL, NULL);
}


'nRet' value return 10. ( 10 is DICOM_ERROR_IMAGE - Improper image)


ps. I am using VC++6.0 and LeadTools 15.0 with latest path.


   Report 
  11-07-2008, 16:38
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DICOM_ERROR_IMAGE - Improper image
Reply Quote
What is the file version of ltkrn15u.dll that you are using?

Does this happen for all images or only some?

I don't see anything obviously wrong with your code snippet.  Please send a small sample project (NOT your entire application) that isolates this problem so I can try to reproduce it here.

NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB.  If it is larger, please send an email to support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.

If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to support@leadtools.com and make sure that you include a link to this forum post.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » Re: DICOM_ERROR_IMAGE - Improper image

Powered by Community Server, by Telligent Systems