QMap - Grayscale, reverse, monochrome
Grayscale, inversion, and conversion of color images into monochrome images are basic operations in image processing. However, different conversion methods are used when the image is grayed, and the results obtained are quite different. This unit combines grayscale, inversion and monochromatic images for easy comparison and manipulation.
Now according to the software function interface, the introduction is as follows:
1. Grayscale (Mean method)
The red, green and blue (RGB) values of each pixel in the image are summed and averaged, that is, R=G=B=(R+G+B)/3.
2. Grayscale (YUV R3G6B method)
The red, green and blue (RGB) values of each pixel in the image are obtained by the following formula, that is, R=G=B= 0.299R+0.587G+0.114B.
3. Grayscale (OpenCV R2G7B method)
The red, green and blue (RGB) values of each pixel in the image are obtained by the following formula, namely R=G=B= 0.213R+0.715G+0.07B.
4. Grayscale (Maximum method)
The red, green and blue (RGB) values of each pixel in the image are obtained according to the following formula, namely R=G=B=Max(R, G, B).
5. Reverse transform
The red, green and blue (RGB) values of each pixel in the image are obtained by the following formula, namely R=255-R, G=255-G, B=255-B.
6. Monochrome transform
The key to converting a color image into a black and white two-color image is how to select a threshold. The default threshold is 128. To get the best threshold for each image, click the "Get monochrome threshold" button and it will be displayed in the edit box.
7. Test and Process
Click the "Test" button to quickly view the image results. Click the "Process" button to complete the processing operation.
Comments
Post a Comment