Showing three different edge images in single figure for comparison (No Subplot) -
hello friends, have applied canny edge detection 3 different images , got 3 images of edges of circles of 3 different sizes. want show these 3 edges of circles of different radius in same figure different colors compare them. how can done? have tried use imfused command did not desired result. please me
here quick solution might not best method:
% edge detection = imread('circuit.tif'); bw1 = edge(i,'canny'); bw2 = edge(i,'sobel'); % black result image (it else) imrgb = repmat(zeros(size(bw1)), [1 1 3]); % color matrices, red , green rm = repmat(cat(3,1,0,0),size(bw1,1),size(bw1,2)); gm = repmat(cat(3,0,1,0),size(bw1,1),size(bw1,2)); % logical matrices same dimension result image lm1 = repmat(bw1,[1 1 3]); lm2 = repmat(bw2,[1 1 3]); % overwrite pixel positions color matrices according logical matrices % logical matrices derived edge detected ones imrgb(lm1) = rm(lm1); imrgb(lm2) = gm(lm2); imshow(imrgb)
Comments
Post a Comment