-
OptiIMG: Image enhancement by optimizing the histogram
This application improves the images by globally histogram optimization or locally optimizing the histogram using a window with a size defined by the user. This second option gives much more contrasted results, although it is slower.
The images are optimized using a linear function. It is possible to
obtain a number of grey levels between 2 (pure black and white) and 256, and
it is also possible to saturate the two histogram tales in different
ways.
Syntax:
- OptiIMG Option InputFile OptimizedFile Function GreyLevels Low% Hight% Ignore [/COSTAT] [/MAX_PENDENT]
Options:
- 1. For the global optimization
- 2. For a window.
Parameters:
- InputFile
(Input File -
Input parameter): IMG file or list of IMG files to improve.
- OptimizedFile
(Optimized File -
Output parameter): This is an output IMG file or a directory if InputFile is a list of IMG files.
- Function
(Function -
Input parameter): Function to use to improve the input image. It can only be "lin" (at the moment only option).
- GreyLevels
(Grey Levels -
Input parameter): Grey levels ,usually 256.
- Low%
(Low % -
Input parameter): Percentage that allows calculating the minimum value to ignore at the lower end of the histogram queue. The values minors or equal to the minimum are assigned to the new minimum value and the values majors or equal to the maximum are assigned to the new maximum value, whereas the intermediate values are calcined linearly between the new minimum and the new maximum. The new minimum is always 0.
- Hight%
(Hight % -
Input parameter): Percentage that allows calculating the maximum value to ignore at the upper end of the histogram queue. The values minors or equal to the minimum are assigned to the new minimum value and the values majors or equal to the maximum are assigned to the new maximum value, whereas the intermediate values are calcined linearly between the new minimum and the new maximum. The new maximum is the NivellsDeGris-1 parameter.
- Ignore
(Ignore -
Input parameter): You write 0 if you want to use NODATA from the image (if it does not exist all the values will be considered as valid), 1 if you want to ignore NODATA and assume that the value 0 is the NODATA value; and 2 if you want to ignore the NODATA indication and assume that the value 255 is the NODATA value.
Modifiers:
/COSTAT=
(Side)
This is the side of the window (odd). The value is automatically 301. This parameter only applies when the option is 2. (Input parameter) /MAX_PENDENT=
(Maximum Slope)
This is the maximum slope of a specific window adjustment. The value is automatically 13. This parameter only applies when the option is 2. (Input parameter)