imwrite() function for save images

24 次查看(过去 30 天)
how will use imwrite() function to save 10 images in different different folder at same or diffident directory
  1 个评论
live to l e a r n  MATLAB
same directory different folder; now am just need to save an image into some folder in same directory which i was created already

请先登录,再进行评论。

回答(1 个)

Azzi Abdelmalek
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
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
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!

Translated by