MelihCan9 / ColorModel_Op

RGB to YIQ and vice-versa to apply histogram equalization method. And another method to highlight the red color on an image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ColorModel_Op

RGB to YIQ and vice-versa to apply histogram equalization method. And another method to highlight the red color on an image.

Used HSV color model to initialize a mask for red color, after initializing the mask, I used several bitwise method from OpenCV library and finally I used the final mask into the origin image.

And the second method does the RGB to YIQ and vice-versa. Unlike matlab, opencv does not have a built-in method for this process. So I had to use certain matrices and matrix multiplication. After first transformation I apply the histogram equalization method for just 'Y' component of the YIQ image. Because the Y component is the intensity component of the YIQ images.

You can look into the code and the comment lines for further detail.

About

RGB to YIQ and vice-versa to apply histogram equalization method. And another method to highlight the red color on an image.


Languages

Language:Python 96.9%Language:C 2.0%Language:C++ 0.5%Language:Cython 0.4%Language:PowerShell 0.1%Language:Fortran 0.0%Language:Batchfile 0.0%