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

 채택된 답변

Once you have N instances of I-dimensional inputs and corresponding O-dimensional target outputs
[ I N ] = size(x)
[ O N ] = size(t)
just go to BOTH help and doc documentations in the NNToolbox.
The appropriate functions are
FITNET for regression and curve-fitting
PATTERNNET for classification and pattern-recognition
TIMEDELAYNET, NARNET & NARXNET for time-series.
Hope this helps.
Thank you for formally accepting my answer
Greg

댓글 수: 1

Good day Mr. Heath,
With respect to the answer you provided to Sanwal Mirza's question, could you please expatiate on how to export extracted features from signatures to NNToolbox. Also, could you please use the attached picture to explain how I would go about it. All my efforts to get this done have been futile. I look forward to hearing from you. Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2015년 9월 18일

댓글:

2020년 3월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by