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
>