25 lines
576 B
Matlab
25 lines
576 B
Matlab
function [ varargout ] = computeLabelStat( varargin)
|
|
|
|
narginchk(3,4);
|
|
CCs=varargin{1};
|
|
Ls=varargin{2};
|
|
I=varargin{3};
|
|
|
|
area = regionprops(Ls,I,'Area');
|
|
moy = regionprops(Ls,I,'MeanIntensity');
|
|
|
|
max = regionprops(Ls,I,'MaxIntensity');
|
|
min = regionprops(Ls,I,'MinIntensity');
|
|
perimeter = regionprops(Ls,I,'Perimeter');
|
|
pxValue = regionprops(Ls,I,'PixelValues');
|
|
r=struct2cell(moy);
|
|
varargout={r};
|
|
|
|
% StatMat=zeros(CCs.NumObjects,5);
|
|
% StatMat(:,1)=cell2mat(struct2cell(moy));
|
|
|
|
|
|
|
|
|
|
|