hello, can anyone tell me what "_mask_filter_result" function is doing in edges.py (skimage/filer/edges.py), i am getting error when i am calling sobel edge detector in latest version of scikit-image . and why we are using it , i mean in sobel edge detection after applying the convolution , can't we directly return that new matrix. Thanks Umesh Kumar Sharma 4th year UG student CSE IIT kharagpur
Hi Umesh, The function `_mask_filter_result` assigns all the boundary pixels to a 0 value. The reason for this is that applying filter kernels or edge-detection operators on an image may result in inconsistent values at boundary pixel because of padding mode used by scipy.ndimage.filters.convolve<http://scipy.ndimage.filters.convolvehttp://docs.scipy.org/doc/scipy/referen...>. I hope that clears your doubt. Thank you. Regards, Ankit Agrawal, Communication and Signal Processing, IIT Bombay.
participants (2)
-
Ankit Agrawal
-
Umesh Sharma