pixel - Calculating average intensity of area with matlab regionprops -
i have grayscaled picture, there objects different shapes. have binary image of grayscaled picture.
with majoraxeslength , minoraxislength ratio (from regionprops) can identify each of them, how can calculate average intensity each of objects?
and possible calculate average intensity of lines, gives minoraxislength , majoraxislength?
add regionprops 'pixelidxlist' handle. can following:
s = regionprops(bw,'pixelidxlist'); n=1:numel(s) meani(n)=mean(image(s(n).pixelidxlist)); end this assumes bw binary image , image grayscale one.
Comments
Post a Comment