Preface: This is a continuation of this question.
Consider the following code, taken from here:
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('messi5.jpg',0)
edges = cv2.Canny(img,100,200) # Would 100 and 200 matter if your original image was black and white?
plt.subplot(121),plt.imshow(img,cmap = 'gray')
plt.title('Original Image'), plt.xticks([]), plt.yticks([])
plt.subplot(122),plt.imshow(edges,cmap = 'gray')
plt.title('Edge Image'), plt.xticks([]), plt.yticks([])
plt.show()
My Question:
- When using open cv's canny function, do your choices for minVal and maxVal matter if you're working with a black and white image?
Reason I ask:
- I've experimented with many values and they don't seem to matter.