How to create mat file for 60 colour images
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi Can any one guide me to create .mat file of 60 or more colour images so that I can use this file for motion detection.please give me the complete code for it.
댓글 수: 0
답변 (1개)
David Sanchez
2013년 7월 12일
my_images = dir('*.png'); % adapt to your images extension
I = cell(numel(my_images),1); % initialize a cell array to hold the images
for k=1:numel(my_images)
I{k}=imread(my_images(k).name);
end
You will end up with a cell array containing an image on each cell.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!