hii...i want to save my images as abc1.pgm, abc2.pgm, abc3.pgm...abc5.pgm
조회 수: 12 (최근 30일)
이전 댓글 표시
i tried the following code
filename=spprimtf('E:\\prajube\\abc1%d.pgm',x);
imwrite(imge1,filename);
still it saves only the last photo...for eg. suppose we have to click 5 images.. it just saves abc5.pgm and abc1.pgm to abc4.pgm are lost
please help!!! :(
채택된 답변
Azzi Abdelmalek
2013년 3월 23일
편집: Azzi Abdelmalek
2013년 3월 23일
for k=1:3
filename=sprintf('E:\\prajube\\abc1%d.pgm',k)
imwrite(image1{k},filename);
end
댓글 수: 3
추가 답변 (1개)
Shivaputra Narke
2013년 3월 23일
% first save ur images as img_cell{1}=img1; %ur imge matrix img_cell{2}=img2; img_cell{3}=img3;
for k=1:3 filename=sprintf('E:\\prajube\\abc%d.pgm',k) imwrite(img_cell{k},filename); end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!