Superpose images at the same place of contours of regions

My problem is not to find corresponding between two images, my problem is to superpose images with contours in the same position of the second image because when i superpose in the same position i can do segmentation easy,
URL of 2 images :
please i need your help it's the first step in my project. Thanks for your interesting

回答(2 个)

take the left image and do
bw = bwlabel(left);
then you can just take a look at the right image by segment, i.e.
imagesc(right(bw==4))
which pulls out the image only where the left image had the 4th region identified. Good luck
I write this code but i don't have any result please explain your idea
folder = 'C:\workspace'; baseFileName = 'figure_3_same_size_map.jpeg'; baseFileName1 = 'MAP.jpg'; fullFileName = fullfile(folder, baseFileName); fullFileName1 = fullfile(folder, baseFileName1); rgb_left = imread(fullFileName); pkpm_right = imread(fullFileName1);
rgb_left = rgb2gray(rgb_left) bw = bwlabel(rgb_left); imshow(bw) pkpm_right = rgb2gray(pkpm_right) imagesc(pkpm_right(bw==4))

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by