Welcome to LEAD Support Forum Login | Register | Faq  

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

How to change W/C for dcm Files?
Started by Ahhh at 11-11-2007 3:16. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  11-11-2007, 3:16
Ahhh is not online. Last active: 12/1/2007 4:35:44 AM Ahhh

Top 500 Posts
Joined on 11-07-2007
Posts 8
How to change W/C for dcm Files?
Reply Quote
Hi,
I want to change W/C for dcm files.
I know one way that using L_ApplyLinearVOILUT.
But it doesn't work when the bitmap is 8bpp image.
In the help, I found some functions that control W/C, for example, L_WindowLevel, L_WindowLevelBitmap and L_WindowLevelFillLUT.
But I can't understand well about them.
So what I want is to give me some information about them and some samples as soon as possible.

Regard.
   Report 
  11-12-2007, 9:28
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,541
Re: How to change W/C for dcm Files?
Reply Quote
What do you mean by W/C?  Window Width and Center or something else?  Please explain what you are trying to do in more detail.

Window Leveling functions like you have mentioned only work for 12 or 16bpp images.

All of these functions have sample code for them in the help file.

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-12-2007, 11:28
Ahhh is not online. Last active: 12/1/2007 4:35:44 AM Ahhh

Top 500 Posts
Joined on 11-07-2007
Posts 8
Re: How to change W/C for dcm Files?
Reply Quote
Best wishes to you.
You're right. What I mean is Width and Center.
But I want to change them for 8pp bitmaps also.
How can I do?

Thanks again to see all my messages.

   Report 
  11-13-2007, 11:26
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,541
Re: How to change W/C for dcm Files?
Reply Quote
You cannot window level 8bpp images, only 12 or 16 bpp images.  The reason Window level exists is because Windows can only display 256 shades of gray, which is exactly what 8bpp is.  Window leveling allows the user to adjust what 256 colors get displayed for what pixel values when the pixels are 12 or 16 bits of data.  Therefore window leveling an image that only has 256 colors is of no use because there isn't any loss of image data due to the limitations of Windows.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » General » Feature Request... » How to change W/C for dcm Files?

Powered by Community Server, by Telligent Systems