function GLCM_f=get_GLCM1(v1,n,maxv,max_t)
w1=zeros(3,3,4);
w1(1,2,1)=1;w1(1,3,2)=1;w1(2,3,3)=1;w1(3,3,4)=1;
GLCM1=get_GLCM(v1,v1,n,w1(:,:,1),maxv,max_t);
GLCM2=get_GLCM(v1,v1,n,w1(:,:,2),maxv,max_t);
GLCM3=get_GLCM(v1,v1,n,w1(:,:,3),maxv,max_t);
GLCM4=get_GLCM(v1,v1,n,w1(:,:,4),maxv,max_t);

% v2=v1;
% v2(:,:,1:1:(end-1))=v1(:,:,2:1:end);
% v2(:,:,end)=v1(:,:,1);
% w2=zeros(3,3,5);
% w2(1,2,1)=1;w2(2,1,2)=1;w2(2,3,3)=1;w2(3,2,4)=1;w2(2,2,5)=1;
% GLCM5=get_GLCM(v1,v2,n,w2(:,:,1),maxv,max_t);
% GLCM6=get_GLCM(v1,v2,n,w2(:,:,2),maxv,max_t);
% GLCM7=get_GLCM(v1,v2,n,w2(:,:,3),maxv,max_t);
% GLCM8=get_GLCM(v1,v2,n,w2(:,:,4),maxv,max_t);
% GLCM9=get_GLCM(v1,v2,n,w2(:,:,5),maxv,max_t);

f1=textural_GLCM_based(GLCM1);
f2=textural_GLCM_based(GLCM2);
f3=textural_GLCM_based(GLCM3);
f4=textural_GLCM_based(GLCM4);
% f5=textural_GLCM_based(GLCM5);
% f6=textural_GLCM_based(GLCM6);
% f7=textural_GLCM_based(GLCM7);
% f8=textural_GLCM_based(GLCM8);
% f9=textural_GLCM_based(GLCM9);

%f=(f1+f2+f3+f4+f5+f6+f7+f8+f9)./9;
f=(f1+f2+f3+f4)./4;

GLCM_f = struct('autocorrelation',{0.0}, 'cluster_prominence',...
    {0.0}, 'cluster_shade',{0.0},'cluster_tendency', {0.0},'contrast',{0.0},...
    'correlation', {0.0},'difference_entropy',{0.0}, 'dissimilarity',{0.0},...
    'energy',{0.0}, 'entropy',{0.0},'homogeneity1',{0.0}, 'homogeneity2',...
    {0.0},'IMC1', {0.0},'IMC2',{0.0},'IDMN', {0.0},'IDN', {0.0},'inverse_variance',...
    {0.0},'maximum_probability', {0.0},'sum_average', {0.0},'sum_entropy',...
    {0.0},'sum_variance', {0.0},'variance', {0.0});

GLCM_f.autocorrelation=f(1);
GLCM_f.cluster_prominence=f(2);
GLCM_f.cluster_shade=f(3);
GLCM_f.cluster_tendency=f(4);
GLCM_f.contrast=f(5);
GLCM_f.correlation=f(6);
GLCM_f.difference_entropy=f(7);
GLCM_f.dissimilarity=f(8);
GLCM_f.energy=f(9);
GLCM_f.entropy=f(10);
GLCM_f.homogeneity1=f(11);
GLCM_f.homogeneity2=f(12);
GLCM_f.IMC1=f(13);
GLCM_f.IMC2=f(14);
GLCM_f.IDMN=f(15);
GLCM_f.IDN=f(16);
GLCM_f.inverse_variance=f(17);
GLCM_f.maximum_probability=f(18);
GLCM_f.sum_average=f(19);
GLCM_f.sum_entropy=f(20);
GLCM_f.sum_variance=f(21);
GLCM_f.variance=f(22);


