N = 5 ;I = imread('13170.jpg');im = imshow(I);for i = 1:Ne = imellipse(gca);% now pick ROI
setColor(e, 'red');position = wait(e); BW = createMask(e,im);% get BW mask for that ROI
BW(:,:,2) = BW; BW(:,:,3) = BW(:,:,1); ROI = I; ROI(BW == 0) = 255;endfigure(i)imshow(ROI,'Border','tight');
MATLAB: It’s using imellipse that does the job for 5 region, but only the last region is displayed. How to do for each region save to array, for each array draw it out, then for each object in array draw it out. Thanks
image processing
Related Question
- How to connect pixels of a binary image as shown in picture
- How do you make lines solid and/or thicker? How do you “split” an image by drawing a line at the desired location? Image Segmentation
- Complement a ROI region of an image
- After using Edging and morphological operation i got the following Image. how can i now extract the number plate region. image is attached.
- How to have different ROIs (Region Of Interest) in a image using imellipse
Best Answer