This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, April 15, 2012 6:42:34 PM(UTC)
Groups: Registered
Posts: 1
Hi.
I'm making a DLL. This DLL convert DICOM Image to Bitmap.
But, I can't get 8 bit grayscal DICOM image.
DICOM image is displayed as monochrome or 2,4 bit image.
I use L_DicomGetImage and L_ConvertToDDB.
but, image is always monochrome(black or white, threshold is 254.)
How can i get grayscale DICOM image?
my source code is...
-------------------------------------------
HBITMAP hBitmap;
result = L_DicomGetImage(hDS, pElement, Bitmap, sizeof(BITMAPHANDLE), i, BitPerPixels[nBitPerPixel], nOrder, Flags, NULL, NULL);
hBitmap = L_ConvertToDDB((HDC)(pDC.ToPointer()), Bitmap);
------------------------------------
#2
Posted
:
Monday, April 16, 2012 3:15:57 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
If the original pixel data is extended grayscale, that type of grayscale is not supported by Windows DDBs. If that's the cause of the problem, call the L_GrayscaleBitmap(&LEADBitmap, 8) to convert the image to normal palettized 8-bit gray, then convert it to DDB or DIB.
If that doesn't solve the problem, send us the original DICOM dataset file and a small code project that shows what you're trying to do.
Notes:
1. If you want to send any files, please put them all in one ZIP or RAR file to ensure our servers accept it.
2. Do not use the Preview after attaching as you will lose the attachment.
3. Do not send your full application.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.