필터 지우기
필터 지우기

How to store feature extracted data into 2d array

조회 수: 1 (최근 30일)
sukhesh chukkapalli
sukhesh chukkapalli 2016년 5월 22일
답변: sukhesh chukkapalli 2016년 5월 24일
I am try to store the output of the feature extracted data of image into 2d array. But the output is 55 numeric values. The output is printed line by line. How can I store this 55 numbers into 2d array. I put this output into one variable, from the variable to store the data into array format for storing into excel sheet. If the output is stored as same in excel, It cannot store in row format, It store in column format like presented output format.So how to store this data into 2d array. My code and my output is
x = imread(sprintf('E:/apps/project/TELUGU data/telugu sep/1/ (1).jpg'))
n = feature_extractor_2d(x);
output is
-0.4000
0.4000
0.6000
-0.2000
0.2600
0.3355
0.1685
0.2055
0.0317
0.2000
1.0000
0.8000
0.6000
0.6494
0
0.1481
0.1852
0.0206
0.8000
0.6000
0.4000
0.4000
0.1132
0.5556
0.1564
0.1564
0.0247
0.6000
0.6000
0.6000
0
0.5788
0.0731
0.1865
0.1404
0.0264
0.8000
0
0.6000
0.4000
0.0023
0.3949
0.3210
0.2564
0.0220
0.6000
0.6000
0.8000
0.6000
0.6488
0.1943
0.0374
0.1070
0.0285
1.0000
Can any one help me how to divide and store this type of data into array. Thank you
  댓글 수: 4
KSSV
KSSV 2016년 5월 23일
Undefined function or variable 'discourser'.
Error in feature_extractor_2d (line 7) image=discourser(image);
Error in f (line 2) n = feature_extractor_2d(x);
sukhesh chukkapalli
sukhesh chukkapalli 2016년 5월 23일
편집: sukhesh chukkapalli 2016년 5월 24일
sorry for the error I added total project file

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

채택된 답변

sukhesh chukkapalli
sukhesh chukkapalli 2016년 5월 24일
x=cell(1,278);
n=cell(1,279);
for j=1:279
cellRef = sprintf('A%d:BC%d',j,j);
x{j} = imread(sprintf('E:/telugu sep/2/(%d).jpg',j))
n{j} = feature_extractor_2d(x{j});
xlswrite('2.xls',n{j},'myResult',cellRef);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by