필터 지우기
필터 지우기

Crop and save images

조회 수: 3 (최근 30일)
90Anonymous
90Anonymous 2018년 12월 7일
댓글: 90Anonymous 2019년 1월 3일
I am segmenting some set of images. After that, I am trying to save them in different folders. But problem is when I am saving the latest segmented images, they replace the earlier ones.
I want it to work as;
  • Keep the existing images in the folder
  • Save newly segmented images with continuing naming like image1, image2, image3, etc.
Please help me to solve this problem.
  댓글 수: 3
Rik
Rik 2018년 12월 7일
This code writes img2 to fullFileName. If that contains the path to your original image it will get overwritten.
If you want a more meaningfull edit, you'll have to show a more meaningfull part of your code, you should preferably try to make a MWE so we can run your code without any other dependencies and can reproduce your issue.
90Anonymous
90Anonymous 2019년 1월 3일
Thank you @Rik Wisselink !!!

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

답변 (1개)

Image Analyst
Image Analyst 2018년 12월 7일
For some reason, your outputFolder is the same as your inputFolder.
Make sure they point to different folders.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by