필터 지우기
필터 지우기

how to take image as a user input from folder?

조회 수: 4 (최근 30일)
romasha
romasha 2014년 2월 3일
답변: waseem almuhtaseb 2019년 2월 14일
hi, i want to take an image from user as an input and selected/input image is saved to another new folder.. how can i do this?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 3일
You can use uigetfile and copyfile functions
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 3일
편집: Azzi Abdelmalek 2014년 2월 3일
ext='*.bmp'
folder='C:\Users\Romesha\Desktop\2';
image=uigetfile([folder '\' ext])
old_image=fullfile(folder,image)
copyfile(old_image,['C:\Users\Romesha\images\' image]);
romasha
romasha 2014년 2월 3일
thanx alot azzi

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

추가 답변 (2개)

waseem almuhtaseb
waseem almuhtaseb 2019년 2월 14일
[path,~]=imgetfile();
Im=imread(path);
Im=im2double(Im);

Alex Taylor
Alex Taylor 2014년 2월 3일
Depending on your exact use case, I'd also recommend looking at the imsave and imputfile functions exposed by the Image Processing Toolbox.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by