matlab - Filter to replace edge points by a circle -
i have following hw assignment: go "saw" image. edge detection. now, convolution, replace each edge point small circle or small gaussian.
which filter can use perform operation?
thank you!
saw_image = imread('saw.jpg'); = rgb2gray(saw_image); bw = edge(i,'canny'); [row, col] = find (bw); = sub2ind(size(i), row, col)'; windowsize = 9; newi=imfilter(i(a),fspecial('???',windowsize));
not sure required. assume should like:
saw_image = randi(255,30,30,3); = rgb2gray(saw_image); bw = edge(i,'canny'); windowsize = 3; newi=imfilter(bw*255,fspecial('gaussian',windowsize)); result = saw_image; result(newi>0) = newi(newi>0); this creates edge image, convolutes image , replaces areas int original image detected edges edge values.
Comments
Post a Comment