Hi,
for the question 1 in exercise 2, I am having troubles understanding the i and j iterations for the output image R creation. Shouldn't we iterate from [-N, N] and [-M,M], respectively, so that we stay in the bounds of the padded image I ?
Hi Adam,
Could you define what is 'in the bounds of the padded image I'?
Kaicheng
Well, to rephrase that, when you are doing a convolution on the padded image I with a N X M kernel, and the convolution center is a pixel with coordinates (x,y), you should be looping through the pixel region with -N to N and -M to M. I do not see why we loop from -N to N+1 and -M to M+1.
Thanks and Best regards,
Adam
Yes, thank you :)
Follow the pulses of EPFL on social networks
© 2023 EPFL, all rights reserved