"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

July 06, 2022

OpenCV Notes

Color channels

  • Hue: Measures the color of the pixel.
  • Saturation: Measures the intensity of color of the pixel.
  • Value: Measures the brighness of the pixel.

Hue range

  • Red (0-60)
  • Yellow (60-120)
  • Green (120-180)
  • Cyan (180-240)
  • Blue (240-300)
  • Magenta (300-360)

RGB Channels

  • (0,0,0) is a black color.
  • (255,0,0) is a pure red color.
  • (0,255,0) is a pure green color.

 

Smoothing Functions

  • Image Smoothing - convolving the image with a low-pass filter kernel. It is useful for removing noise
  • Bilateral filter - replaces the intensity of each pixel with a weighted average of intensity values. cv.bilateralFilter() is highly effective in noise removal while keeping edges sharp


Color Codes

Mask for custom color range


Keep Thinking!!!!

No comments: