File Exchange

image thumbnail

Sobel filter of predefined size

version 1.0.0.0 (1.67 KB) by Jan Motl
The function returns Sobel filter of predefined size.

2 Downloads

Updated 27 Feb 2018

View License

The function returns Sobel filter of predefined size. The function can also return gradient and smoothing parts individually.
Reference: https://en.wikipedia.org/wiki/Sobel_operator

Cite As

Jan Motl (2020). Sobel filter of predefined size (https://www.mathworks.com/matlabcentral/fileexchange/40472-sobel-filter-of-predefined-size), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jeongmin Choi

there must be "2" in the loop index as below:

for i=1:2:size-3
s = normalisation * conv([1 2 1], s);
d = conv([1 2 1], d);
end

Updates

1.0.0.0

Add reference

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux