MATLAB: RegionProps areaeccentricityimage segmentationregionprops I want to select the pieces of an image that have these caracteristics: area > 10 and Eccentricity > 0,4. How can i combine those in one fuction? Thank you for the attention. Daniel Carvalho Best Answer I = rand(100)>.75; %sample binary imageCC = bwconncomp(I); %Connected Components Analysisstats = regionprops(CC,'area','eccentricity'); %regionpropsidx = [stats(:).Area]>10&[stats.Eccentricity]<0.4; %logical indices corresponding to area > 10 and eccentricity <0.4.Do what you what you want with CC,idx; all of the information is there. Related SolutionsMATLAB: I am not getting the BoundingBox See my Image Segmentation Tutorial where I demonstrate that: http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial---blobsdemo-- MATLAB: Get eccentricity and metric values images Index your variables with k: area(k) = cat(1,stats.Area); eccentricity(k) = cat(1,stats.Eccentricity); metric(k) = 4*pi*area/perimeter^2; Related QuestionHow can i separate all the connected regions in a binary image and display them individually.Thin the boundary of objects of black & white imagesRemoving areaFill a particular blob with black
Best Answer