ImageJ intensity scaling/windowing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ImageJ intensity scaling/windowing

Thomson Neil (EAST KENT HOSPITALS UNIVERSITY NHS FOUNDATION
              TRUST)
Dear list

I'd be grateful if someone could point me to where the scaling of image intensity is performed at the lowest level within ImageJ. When I look through the source code I keep coming back to ImageProcessor.setMinandMax, which is abstract and therefore pretty empty. I'd like to know because I'm writing a plugin that requires multiple viewports and a min/max intensity control and I cannot figure out how ImageJ does the intensity scaling. Naturally I'd like to recycle as much of the code as I can.

Kind regards, Neil


Neil Thomson,
Nuclear Medicine Physics Section,
Medical Physics,
Kent and Canterbury Hospital,
UK. CT1 3NG
+44 (0) 1227 766877

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere
For more information and to find out how you can switch, visit www.connectingforhealth.nhs.uk/nhsmail

********************************************************************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ intensity scaling/windowing

Michael Schmid
Hi Neil,

ImageProcessor.setMinandMax is abstract because the code in the  
various subclasses (ByteProcessor, ShortProcessor, FloatProcessor) of  
ImageProcessor is different. You will find the code in these subclasses.
The ByteProcessor code manipulates the color lookup table. For  
ShortProcessor and FloatProcessor it affects the translation from the  
short/float values to the 8-bit value used for display.

Hope this helps,

Michael
________________________________________________________________

On 12 Jan 2011, at 23:21, Thomson Neil (East Kent Hospitals NHS  
Trust) wrote:

> Dear list
>
> I'd be grateful if someone could point me to where the scaling of  
> image intensity is performed at the lowest level within ImageJ.  
> When I look through the source code I keep coming back to  
> ImageProcessor.setMinandMax, which is abstract and therefore pretty  
> empty. I'd like to know because I'm writing a plugin that requires  
> multiple viewports and a min/max intensity control and I cannot  
> figure out how ImageJ does the intensity scaling. Naturally I'd  
> like to recycle as much of the code as I can.
>
> Kind regards, Neil
>