i m new to glcm and neural network... what i want to know that i have excracted features through glcm now i want to add these features to neural network how can i do this?
이전 댓글 표시
a=imread('1.jpg'); b=rgb2gray(a); c=imresize(b,[128,128]); glcm1 = graycomatrix(c,'Offset',[0 1;-1 1;1 1]); stats1 = graycoprops(glcm1,{'Contrast','Correlation','Energy','Homogeneity'});
d=imread('2.jpg'); e=rgb2gray(d); f=imresize(e,[128,128]); glcm2 = graycomatrix(f,'Offset',[0 1;-1 1;1 1]); stats2 = graycoprops(glcm2,{'Contrast','Correlation','Energy','Homogeneity'});
g=imread('3.jpg'); h=rgb2gray(g); i=imresize(h,[128,128]); glcm3 = graycomatrix(i,'Offset',[0 1;-1 1;1 1]); stats3 = graycoprops(glcm3,{'Contrast','Correlation','Energy','Homogeneity'});
j=imread('4.jpg'); k=rgb2gray(j); l=imresize(k,[128,128]); glcm4 = graycomatrix(l,'Offset',[0 1;-1 1;1 1]); stats4 = graycoprops(glcm4,{'Contrast','Correlation','Energy','Homogeneity'});
m=imread('5.jpg'); n=rgb2gray(m); p=imresize(n,[128,128]); glcm5 = graycomatrix(p,'Offset',[0 1;-1 1;1 1]); stats5 = graycoprops(glcm5,{'Contrast','Correlation','Energy','Homogeneity'});
x=imread('7.jpg'); y=rgb2gray(x); z=imresize(y,[128,128]); glcm6 = graycomatrix(z,'Offset',[0 1;-1 1;1 1]); stats6 = graycoprops(glcm6,{'Contrast','Correlation','Energy','Homogeneity'}); ahmed=stats6; sanwal=[stats1; stats2; stats3; stats4; stats5];
stats1 stats2 stats3 stats4 stats5 sanwal
댓글 수: 1
Image Analyst
2015년 9월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Texture Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!