Azzera filtri
Azzera filtri

imwrite() function for save images

24 visualizzazioni (ultimi 30 giorni)
live to l e a r n  MATLAB
live to l e a r n MATLAB il 8 Dic 2012
how will use imwrite() function to save 10 images in different different folder at same or diffident directory
  1 Commento
live to l e a r n  MATLAB
live to l e a r n MATLAB il 8 Dic 2012
same directory different folder; now am just need to save an image into some folder in same directory which i was created already

Accedi per commentare.

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 8 Dic 2012
Modificato: Azzi Abdelmalek il 8 Dic 2012
Im1=rand(100,100,3) % example of image
imwrite(Im1,'yourfolder/Image1.jpg')
  4 Commenti
Walter Roberson
Walter Roberson il 8 Dic 2012
Azzi, your sample code uses 5 as the number of color panes. You need to use 3 for RGB images.
Azzi Abdelmalek
Azzi Abdelmalek il 8 Dic 2012
Modificato: Azzi Abdelmalek il 8 Dic 2012
Yes walter, it's a typing error
Im1=rand(100,100,3) % example of image
imwrite(Im1,'yourfolder/Image1.jpg')

Accedi per commentare.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by