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



Last Go to last post Unread Go to first unread post
#1 Posted : Monday, August 5, 2013 8:36:03 PM(UTC)

Groups: Registered
Posts: 5


I'm using Leadtools 17 for a Medical Application.
All DCM images are based on 16bit image.
Anyway I have to add a function for image processing by OpenCV. However it's result are *.bmp file(24bit). So I have to convert it to 16bit.
I tried to use code belows but it's not work to open image file as 16bit.

m_bitmapDCM.Load(strFilePath.GetBuffer(0), 16, ORDER_GRAY, NULL, NULL)

Leadtools Shoule be support converting bit for DCM image file.

Please let me know how to convert it.
Thank you.

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 : Tuesday, August 6, 2013 3:37:08 AM(UTC)


Groups: Registered
Posts: 256

Just to make sure that I understand you correctly, you are loading the pixel data using LEADTOOLS, then passing the new image to a 3rd party function, then you want to save the image as 16-bit?
If this is correct, when you extract the pixel data as a bitmap using our toolkit, it will be extracted as the original image (unless you choose load it with other bitness).
Since the 3rd party function is converting the image, you can use "L_GrayScaleBitmap" to convert the 24-bit bitmap to 16-bit grayscale.
#3 Posted : Sunday, August 11, 2013 4:05:18 PM(UTC)

Groups: Registered
Posts: 5

Eventually I can fix this problem. Thanks for your help.
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-2023, Yet Another Forum.NET
This page was generated in 0.038 seconds.