writing a image to folder
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to write a image to folder,i have did as
pickind='bmp'
path ='E:\rh4frames\';
files = dir(fullfile(path,'*.jpg'));
image = ((imread(fullfile(path,files(2).name))));
%%some process
strtemp=strcat('E:\rh4frames\',int2str(2),'.',pickind);
imwrite(new_image1,strtemp)
i have taken 2nd image from folder done some operation and want to replace this this into the folder,in which image was read say 2,the second image must be replaced my this modified image
please help
댓글 수: 0
채택된 답변
Walter Roberson
2013년 3월 13일
strtemp = fullfile(path, ['2.',pickind]);
Or if you want to overwrite the original,
strtemp = fullfile(path, files(2).name);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!