Applying translations to a folder of images

2 ビュー (過去 30 日間)
shivasakthi
shivasakthi 2017 年 1 月 25 日
回答済み: Takuji Fukumoto 2017 年 1 月 25 日
I am proposing to apply translation (say imtranslate(I,[x,y]), at varying levels, and random crops,to a set of 100 images in a folder named "chrom" in D:\. After applying the translations, I want these images to be stored in a different folder say "chrom-translate1" in the same D:\. In this way, I need to apply translations of different degrees, and store it in different folders in D:\. Kindly help me with the code for this. Thanks in advance.

回答 (1 件)

Takuji Fukumoto
Takuji Fukumoto 2017 年 1 月 25 日
I show the way to write image in different folder.
I = imread('chrom\image.jpg');
<image processing>
mkdir('chrom-translate1')
imwrite(I,'chrom-translate1\image.jpg')
these are for case that you set D:\ as your work directory. full path whould be also fine.

カテゴリ

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