필터 지우기
필터 지우기

how to add custom images in matlab GUI

조회 수: 2 (최근 30일)
Sagar AS
Sagar AS 2015년 7월 5일
답변: Sagar AS 2015년 7월 6일
i know to add images which exist in image processing toolbox,but if i need to add image of my own, then what is the procedure or code or is there a way i can add images to the image processing toolbox.
I=imread('eight.tif');
hi = imagesc(I)
colormap gray
here is how i imported the already existing image

채택된 답변

Image Analyst
Image Analyst 2015년 7월 5일
Do this to find out the folder where the Image Processing Toolbox demo images are:
folder = fileparts(which('cameraman.tif')); % Determine where demo folder is (works with all versions).
Now, just put your images into that folder with Windows Explorer or whatever file manager you use for your operating system.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 7월 5일
I don't know why you'd need to do that. I don't. Much better is to just specify the full filename (folder + base file name + extension) when you call imread(). See the fullfile() function also.

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

추가 답변 (1개)

Sagar AS
Sagar AS 2015년 7월 6일
thank you this worked

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by