same directory different folder; now am just need to save an image into some folder in same directory which i was created already
imwrite() function for save images
20 ビュー (過去 30 日間)
古いコメントを表示
how will use imwrite() function to save 10 images in different different folder at same or diffident directory
回答 (1 件)
Azzi Abdelmalek
2012 年 12 月 8 日
編集済み: Azzi Abdelmalek
2012 年 12 月 8 日
Im1=rand(100,100,3) % example of image
imwrite(Im1,'yourfolder/Image1.jpg')
4 件のコメント
Walter Roberson
2012 年 12 月 8 日
Azzi, your sample code uses 5 as the number of color panes. You need to use 3 for RGB images.
Azzi Abdelmalek
2012 年 12 月 8 日
編集済み: Azzi Abdelmalek
2012 年 12 月 8 日
Yes walter, it's a typing error
Im1=rand(100,100,3) % example of image
imwrite(Im1,'yourfolder/Image1.jpg')
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!