how can do a process on some images in a loop process while these images are not like a sequence?

2 ビュー (過去 30 日間)
jack nn
jack nn 2015 年 6 月 9 日
回答済み: Dima Lisin 2015 年 6 月 12 日
hi I have some folders that in each folder we have some images.for example in folderA we have images like these: 18.tiff , 32.tiff, 38.tiff, 48.tiff,54.tiff, 211.tiff the name of images are ascending. we should do some procesec on these images and then replace these new images insted of initial ones. for example the name of 18.tiff after process should be 18.tiff. Can I do this process in a sequence for example in a for loop or while loop? thanks

回答 (3 件)

Ashish Uthama
Ashish Uthama 2015 年 6 月 10 日
Try the imageBatchProcessor app, also look at the 'Generate Code' button in it.
  2 件のコメント
jack nn
jack nn 2015 年 6 月 10 日
thanks dear Ashish Uthama. but from the MATLAB® Toolstrip, on the Apps tab, in the Image Processing and Computer Vision group,I dont have imageBatchProcessor...I have matlab2013...should I setup a new version of matlab?
Walter Roberson
Walter Roberson 2015 年 6 月 10 日
It appears to be new in R2015a.

サインインしてコメントする。


Walter Roberson
Walter Roberson 2015 年 6 月 9 日
  3 件のコメント
Walter Roberson
Walter Roberson 2015 年 6 月 10 日
It doesn't matter. You can dir() to get the order out of the directory and use that order. Or you can get the order out of the directory, sort however you like, and use that order.
You imply that the file names are numeric but not sequential, and you imply that there might be differences in the number of digits. You might want this File Exchange Contribution
jack nn
jack nn 2015 年 6 月 10 日
編集済み: jack nn 2015 年 6 月 10 日
thanks dear Walter Roberson .I should try this.I will come back soon.

サインインしてコメントする。


Dima Lisin
Dima Lisin 2015 年 6 月 12 日
If you have MATLAB R2014b or later and the Computer Vision System Toolobx, then try using imageSet.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by