September 2018
Intermediate to advanced
380 pages
9h 40m
English
Most computer vision algorithms work on grayscale images, so there is a need for converting a color image captured from a camera to a grayscale image. Though OpenCV provides an inbuilt function to do this operation, it can be done by developing your own function. This section will demonstrate the method to develop a PyCUDA function for converting a color image to a grayscale image. If formulas for converting an image from one color space into another are known, then the function shown in this section can be written for any color space conversion by just replacing formulas.
OpenCV captures and stores image in BGR format, where blue is the first channel followed by green and red. The formula to convert from ...
Read now
Unlock full access