Less corners
In this exercise, you will test what happens when you set the minimum distance between corner peaks to be a higher number. Remember you do this with the min_distance attribute parameter of the corner_peaks() function. The threshold_rel parameter will specify the minimum intensity of peaks.
building_image.The functions show_image(), show_image_with_corners() and required packages have already been preloaded for you. As well as all the previous code for finding the corners. The Harris measure response image obtained with corner_harris() is preloaded as measure_image.
Cet exercice fait partie du cours
Image Processing in Python
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Find the peaks with a min distance of 10 pixels
coords_w_min_10 = ____(measure_image, min_distance=____, threshold_rel=0.02)
print("With a min_distance set to 10, we detect a total", len(coords_w_min_10), "corners in the image.")