Page 171 - Algorithm Collections for Digital Signal Processing Applications using MATLAB
P. 171
160 Chapter 4
9. Skewness
The Skew ness of the gray values is computed for every sub block of
the image as mentioned below.
10. Kurtosis
The Kurtosis of the gray values is computed for every sub block of the
image as mentioned below.
6.3 M-program for Interactive Genetic Algorithm
__________________________________________________________
igagv.m
r=round(rand(1,8)*94);
figure
for k=1:1:8
subplot(4,2,k)
title('Assign the rank')
s=strcat(num2str(r(k)),'.jpg');
A=imread(strcat('E:\Naturepix\',s));
imshow(A)
title(strcat('Image',num2str(k)));
end
for iter=1:1:10
s1=input('Enter the rank for image 1(Between 0 to 100)');
s2=input('Enter the rank for image 2(Between 0 to 100)');
s3=input('Enter the rank for image 3(Between 0 to 100)');
s4=input('Enter the rank for image 4(Between 0 to 100)');