imwrite() function for save images

조회 수: 4 (최근 30일)
live to l e a r n  MATLAB
live to l e a r n MATLAB 2012년 12월 8일
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
live to l e a r n MATLAB 2012년 12월 8일
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')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by