필터 지우기
필터 지우기

how to overcome overwrite of the saved images in a folder

조회 수: 10 (최근 30일)
Tulips
Tulips 2012년 10월 15일
hi sir, can I know how to overcome the overwrite file that have been save in a folder? for instance, it can save a 001.jpg image in a file. however, when I run program for another image , it will overwrite 001.jpg as another image. I want the second image save as 002.jpg in a same folder and make it for the next image.. pls advice and help!

답변 (1개)

Image Analyst
Image Analyst 2012년 10월 15일
  댓글 수: 4
Image Analyst
Image Analyst 2012년 10월 15일
Code given in the FAQ almost always needs to be adapted to fit the individual user's situation. The code in the FAQ just reads images. If you want to write images you need to use a similar concept of using sprintf() to create an output file name, which may be in a different folder or the same folder, and then use imwrite().

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by