i converted the image initially using the rbg2gray command. following that i created a mask. What command should i use to count all values in the mask that have non 0 values?
FirstImage = imread('image1.jpeg');A = rgb2gray (FirstImage);mask = A > 140 & A < 200;
Best Answer