火焰圆形度,定义是
clear all;
clc;
I=imread('F:\\bi\\original2.jpg');
P=rgb2gray(I);
K = imresize (P ,0.2);
[row,col]=size(K);
S=0;
//累加1值点,即火焰总面积
for ii=1:row
for jj=1:col
if ( K(ii,jj) == 1 )
S=S+1;
end
end
end<
火焰圆形度,定义是
clear all;
clc;
I=imread('F:\\bi\\original2.jpg');
P=rgb2gray(I);
K = imresize (P ,0.2);
[row,col]=size(K);
S=0;
//累加1值点,即火焰总面积
for ii=1:row
for jj=1:col
if ( K(ii,jj) == 1 )
S=S+1;
end
end
end<