How do i store/ concatenate 100 images Histograms in one variable?

i have written a code to find Euclidean distance between two images. I use two variable N, M to store two images. Now i wonder if i do this for 100 images. How do i concatenate or store 100 images histogram in one variable?

 채택된 답변

CurrentFile = ... something constructed from FileCounter....
CurrentImage = imread(CurrentFile);
h(FileCounter,:) = imhist(CurrentImage);

댓글 수: 4

I am new to matlab can u please edit this code according to my program for two images?
for FileCounter = 1 : 2
CurrentFile = sprintf('%d.jpg', FileCounter);
CurrentImage = imread(CurrentFile);
h(FileCounter,:) = imhist(CurrentImage);
end
thank you very much it is really helpful.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2016년 1월 8일

댓글:

2018년 6월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by