![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/19066932_1595574274210_DEF.jpg)
Mahendra Amrao
Followers: 0 Following: 0
Feeds
已回答
create 3*3 matrix around a given pixel
img = zeros(6,7) a = [4 3] img(a(2),a(1)) = 1 B = [1 1 1 ; 1 0 1 ; 1 1 1]; img2 = conv2(img, B ,'same')
create 3*3 matrix around a given pixel
img = zeros(6,7) a = [4 3] img(a(2),a(1)) = 1 B = [1 1 1 ; 1 0 1 ; 1 1 1]; img2 = conv2(img, B ,'same')
4 years 前 | 0