필터 지우기
필터 지우기

How to save an image to a folder?

조회 수: 3 (최근 30일)
Rachel
Rachel 2014년 3월 11일
편집: Rik 2021년 6월 3일
Hi everyone
I am running a loop to do some image processing and in every iteration I want to save the processed image into a folder in the desktop. I am using 'imwrite'function but everytime it is giving me an error saying " Error using imwrite (line 459) Can't open file "/Users/Rachel/Desktop/image" for writing. You may not have write permission. "
I want to save the image generated in each iteration into a folder. Is there any other function I should be using? Or is there a way to avoid this error? Can someone please help?
Thanks in advance!

답변 (2개)

Walter Roberson
Walter Roberson 2014년 3월 11일

Rahul punk
Rahul punk 2021년 6월 2일
편집: Rahul punk 2021년 6월 3일
%read image
tt= imshow(image) ;
%save your image other location with any name save desktop or any folder also
saveas(tt,'C:\Users\admin\Desktop\testimagesave.jpg') ;
  댓글 수: 1
Rik
Rik 2021년 6월 2일
편집: Rik 2021년 6월 3일
This doesn't really answer the question, as the question is about a sequence of files. Your answer doesn't show how to do that.
Your edit does not invalidate my point.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by