how to do masking for multiple images in terms of {i}?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, For one image I can do the masking, which is
h1 = subplot(3, 4, 7);
imshow(RGBimage)
h2 = subplot(3,4,7);
hEllipse = imellipse(gca,[10 10 50 150]);
binaryImage = hEllipse.createMask();
but what if I have multiple images and would like to do mask for each one. I am using the for loop in this case
for i = 1 : numel(folder)
What to do ?
end
댓글 수: 0
답변 (1개)
Image Analyst
2015년 3월 22일
댓글 수: 2
Image Analyst
2015년 3월 22일
I wouldn't call it "folder" since the variable contains filenames, not a folder name. And you should DEFINITELY not call a variable image, since that is the name of a built-in function.
I still don't know what you want to do. Why are you saving all these images instead of operating on them in the first loop? Same question for the binary images. And what do you want to do with the binary images after you create them? Do you want to write a solid or outline ellipse into the RGB image?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!