How can I get the size of the green region in the image??
By using funtion any() and sum() on my mask index
Or any other ways that the experts can come up with.
Thank you for your help.
img1 = imread(pic)red1 = img1(:,:,1);green1 = img1(:,:,2);blue1 = img1(:,:,3);get_green = red1 == 0 & green1 == 255 & blue1 == 0;sup_mask = cat(3,get_green,get_green,get_green);
Best Answer