image calibration (lut color) bar with user-defined limits?

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

image calibration (lut color) bar with user-defined limits?

dvor
Hello

Any suggestions as to how one might add a color calibration bar with user defined limits different than the max/min pixel intensities, so that images with different intensity ranges can be compared visually side-by-side.

I am writing a macro to
(1) calculate NDVI values from multispectral CIR image (resulting in a 32-bit image)
(2) pseudocolor the image (lookUp Table, e.g. "32_color")
(3) add color-bar ( Analyze/Tools/Calibration Bar) -- which I would like to range from -1 to +1 even if the histogram of the given scene is cropped within this range.


Can one map an arbitrary LUT range to correspond to a -1 / +1 intensity range, irrespective of the range of intensities in the image? Or is there a better way to accomplish the above?

Any help will be greatly appreciated!

Dvoralai





Reply | Threaded
Open this post in threaded view
|

Re: image calibration (lut color) bar with user-defined limits?

John Oreopoulos
Dvoralai,

I think this can be done if you add a step in between (2) and (3) in your macro:

Image->Adjust->Brightness/Contrast
Click "Set" in the contrast window, and set the scale to be -1 to +1

Alternatively, you can use the Image->Adjust->Threshold command to threshold to NaN (not an number) any pixel values that do not fall between -1 to +1. This will change the max and min of the intensity range to be -1 and +1 respectively.

Apologies if this is what you are already describing in your original email.

John Oreopoulos
Spectral Applied Research
Richmond Hill, Ontario
Canada



On 2010-12-07, at 7:28 PM, dvor w wrote:

> Hello
>
> Any suggestions as to how one might add a color calibration bar with user defined limits different than the max/min pixel intensities, so that images with different intensity ranges can be compared visually side-by-side.
>
> I am writing a macro to
> (1) calculate NDVI values from multispectral CIR image (resulting in a 32-bit image)
> (2) pseudocolor the image (lookUp Table, e.g. "32_color")
> (3) add color-bar ( Analyze/Tools/Calibration Bar) -- which I would like to range from -1 to +1 even if the histogram of the given scene is cropped within this range.
>
>
> Can one map an arbitrary LUT range to correspond to a -1 / +1 intensity range, irrespective of the range of intensities in the image? Or is there a better way to accomplish the above?
>
> Any help will be greatly appreciated!
>
> Dvoralai
>
>
>
>
>