Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, April 15, 2012 6:42:34 PM(UTC)
redsusia

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);
------------------------------------
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, April 16, 2012 3:15:57 AM(UTC)

mohamed  
mohamed

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.

LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.121 seconds.