Class CalibrateDialog

This class CalibrateDialog provides a tool for calibrating multi-spectral images.

Description: This tool will allow users to callibrate any image based on three images. The callibration proccess will process the following three images: a black image (for example taken with the lenscap on), an image of a perfect white background, and the image that needs callibration.


Figure 1

The dialog shown in Fig. 1 allows the user to specify original, "black" and "white" images. If the user does not specify a black image, an image with all 0's is assumed. If the user does not specify an image for original image, the image shown in the main frame is used.
Once the images are specified the user can calibrate. This will perform the following action on the image:
 calibrated pix[i, j] = { 1 if original pix[i, j] >= white pix[i, j],
                          0 if original pix[i, j] =< black pix[i, j],
                          (original pix[i, j] - black pix[i, j]) / (white pix[i, j] - black pix[i, j]) else;
 
This will result in a calibrated image with values between 0 and 1. Using the dialog the user can force the output to be of a particular type, as well as a multiplier to be applied to the result, for instance setting it to "BYTE" and 255 will result in an image of type BYTE with values between 0 and 255.

Author:
Rob Kooper and Tyler J. Alumbaugh