How to display an existing ROI on an image (Copy an ROI to another image)
Mostra commenti meno recenti
Hi, Guys,
I have 2 images with the same size. An ROI was drawn on 1st image. I want to display this ROI on 2nd image. The key is to display this ROI at the same location on 2nd image. Please see the following example.
% Read 1st image and display it
i1 = imread('cameraman.tif');
figure(1)
imshow(i1);
h=imellipse; % Draw ROI on 1st image

% Read 2nd image and display it
i2 = imread('cameraman.tif');
figure(2)
imshow(i2);

How to copy the ROI generated on 1st image (h) to Figure (2) and display it? Thank you!

Risposta accettata
Più risposte (0)
Categorie
Scopri di più su ROI-Based Processing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!