Name
ce_fit - finds linear transformation (applied to pixels) which fits the histogram of the input image to the histogram of the reference image.
Usage
[output]= ce_fit(image, reference, mask)
Input
- image
- The image whose histogram needs to be corrected
- reference
- The reference image for histogram correction (does not have to have the same dimensions as the input image).
- mask
- Input image mask. (Note: should have the same dimensions as the input image)
Output
- output
- A list containing the Final linear transformation parameters, corrected image and final chi-square. Please note that all the pixels will be transformed according to the linear transformation found for the pixels under the mask.
Author / Maintainer
Bharath K Narayanan
Keywords
- category 1
- UTILITIES
- category 2
- SPATIAL
Files
utilities.py
Maturity
- beta
- works for author, often works for others.
Bugs
None. It is perfect.