Superpose images at the same place of contours of regions

1 vue (au cours des 30 derniers jours)
Mohamed Amine
Mohamed Amine le 25 Mai 2012
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

Réponses (2)

Stephen
Stephen le 25 Mai 2012
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 le 25 Mai 2012
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