Conversion_EqualHist
Using of command
Function equalizes the histogram of a grayscale image.Function normalizes the brightness and increases the contrast of the image.
Equalize of histogram use following algorithm:
- Calculate the histogram H of source image.
- Normalize the histogram so that the sum of histogram bins is 255.
- Compute the integral of the histogram
- Transform the image using computes integral as a look-up table to the destination image
Commands parameters
Command has 2 parameters:
- Source picture: You need select source picture. You can select Picture_0 to Picture_19.
- Destination picture: You need select destination picture. Source and destination picture can be same. You can select Picture_0 to Picture_19.
Error codes
- Error code -11: Bad source picture position in picture array. Source picture is not in range 0-19. Check test program file if command has correct format.
- Error code -12: Bad destination picture position in picture array. Destination picture is not in range 0-19. Check test program file if command has correct format.
- Error code -13: Dimension source and destination image are not same. Width of source and destination image must be same.
- Error code -14: Source image must be single channel.
- Error code -15: Destination image must be single channel.
- Error code -100: OpenCV error. Explanation of this error will be displayed in result window.