一阶矩,定义了每个颜色分量的平均强度
二阶矩,反映待测区域颜色方差,即不均匀性
三阶矩,定义了颜色分量的偏斜度,即颜色的不对称性
close all;clear all;clc;
J = imread('lena.jpg');
K = imadjust(J,[70/255 160/255],[]);
figure;
subplot(121),imshow(J);
subplot(122),imshow(K);
[m,n] = size(J);
mm = round(m/2);
mn = round(n/2);
[p,q] = size(K);
pp = round(p/2);
qq =
1