필터 지우기
필터 지우기

How to export data to single excel sheet for number of data from image processing

조회 수: 3 (최근 30일)
how to provide loop so that several image can be analysised and its characteristics like, area , centroid, etc can be save in single excel file one by one.
data=regionprops('table' ,B, 'Area', 'EquivDiameter', 'Centroid', 'MajorAxisLength','MinorAxisLength')
writetable(data,'emberdata.csv');

채택된 답변

Kushagr Gupta
Kushagr Gupta 2017년 6월 8일
The easiest way I can think of is to append the entries from multiple images into a single table in a loop and then write that table to an excel or csv file. The following code illustrates this idea:
I{1} = imread('coins.png');
I{2} = imread('cameraman.tif');
final =table;
for id=1:2
data=regionprops('table',I{id}, 'Area', 'EquivDiameter', 'Centroid', 'MajorAxisLength','MinorAxisLength')
final = [final;data];
end
writetable(final,'mydata.csv')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by