Crop and save images
1 回表示 (過去 30 日間)
古いコメントを表示
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
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.
回答 (1 件)
Image Analyst
2018 年 12 月 7 日
For some reason, your outputFolder is the same as your inputFolder.
Make sure they point to different folders.
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!