Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: How can i get and set window level value and contrast/brightness?
Started by Gunasekaran at 06-17-2008 5:14. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  06-17-2008, 5:14
Gunasekaran is not online. Last active: 8/19/2008 10:58:53 AM Gunasekaran

Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 89
How can i get and set window level value and contrast/brightness?
Reply Quote
Hello dude

      I am using lead tools version 15.0 latest pateches. i am working in VB.Net platform,
1.How can i get the windowl level value W-value and L-value?
2.How can i get the contrast and brightness value?

Thanks and Regards
Guna


Thanks and Regards
Guna
   Report 
  06-17-2008, 16:52
GregR is not online. Last active: 7/23/2008 3:26:54 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,502
Re: How can i get and set window level value and contrast/brightness?
Reply Quote
What kind of image are you dealing with?  Are you trying to get these values from a Dicom dataset or just a simple raster image like a TIFF?

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-18-2008, 3:10
Gunasekaran is not online. Last active: 8/19/2008 10:58:53 AM Gunasekaran

Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 89
Re: How can i get and set window level value and contrast/brightness?
Reply Quote
I am using both Tiff and dicom images....like save annotation option  is there any option to save the windowlevel event .For instance I am adjusting  the windowlevel of my image and saving the windowlevel (W and L value) separately without disturbing the original image ..whenver i load the original  image ,the windowlevel which as been saved separately should also be loaded along with image...(Same as like Save annotation ,load annotation methods)...
Can u please help me out in this issue...

Thanks
Guna


Thanks and Regards
Guna
   Report 
  06-18-2008, 11:30
GregR is not online. Last active: 7/23/2008 3:26:54 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,502
Re: How can i get and set window level value and contrast/brightness?
Reply Quote
Window leveling is a purely logical concept.  It only tells the viewing application how to interpret the 12 or 16bpp data because windows can only display 256 (8bpp) shades of gray. 

Brightness and Contrast can be physically applied to the image, but once it is done it is permanent and there isn't a way to calculate what brightness and contrast changes have been made.  LEADTOOLS also provides the ability to just change the brightness and contrast in the way it gets painted rather than physically changing the image.  To do this, use RasterImage.PaintContrast and PaintIntensity.  These are values that you can get and set and then save them out to a file as well.

It is possible to store the window center and width in a Dicom dataset (0028:0050 and 0028:0051), but TIF files do not have the same concept.  In this case you'll need to just keep track of the values the user has selected each time they ever change them and then save them to a separate file.

If there isn't a Window center and width values set either in your separate file or in the dataset, then you'll need to calculate it based on the bpp to set the width as the maximum width, and then divide that by two in order to get the center.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » General » Re: How can i get and set window level value and contrast/brightness?

Powered by Community Server, by Telligent Systems