How can I create a loop that will create multiple ellipses on this image? I would like to do this so that I can calculate the mean RGB values of each ellipse. Here is the code I have so far.
1 view (last 30 days)
Show older comments
img = imread('peppers.png'); h_im = imshow(img); e = imellipse(gca,[220 90 30 30]); BW = createMask(e,h_im); BW(:,:,2) = BW; BW(:,:,3) = BW(:,:,1); ROI = img; ROI(BW == 0) = 0; figure, imshow(ROI);
0 Comments
Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!