Superpose images at the same place of contours of regions

1 次查看(过去 30 天)
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 个)

Stephen
Stephen 2012-5-25
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

Mohamed Amine
Mohamed Amine 2012-5-25
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))

Community Treasure Hunt

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

Start Hunting!

Translated by