Programming Computer Vision with Python (Chapter 10 OpenCV)

Programming Computer Vision with Python (Chapter 10 OpenCV)

insert image description here

Involved function

1. integral() function

2, floodFill () function

3. pyrDown() function

4. SURF() function

understand the problem

1、

After reading the image and converting to grayscale the function integral() creates an image where the value at each pixel is the sum of the intensities above and to the left. After reading the image and converting to grayscale, the integral()
function An image is created (each pixel value of the image is the sum of the intensity values ​​from top to left).

2、

Here the function floodFill() takes the image (grayscale or color), a mask
with non-zero pixels indicating areas not to be filled, a seed pixel, the new color value to replace the flooded pixels together with lower and upper difference thresholds to accept new pixels.
The flooding function requires a grayscale or color image,
a mask that uses non-zero pixels to indicate areas that should not be filled,
a seed pixel, and
a new color value to replace pixels washed by the flood. , with upper and lower interpolation thresholds to receive new pixels.

Guess you like

Origin blog.csdn.net/baidu_41810561/article/details/120661031