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일

1 개 추천

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일

0 개 추천

thank you this worked

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2015년 7월 5일

답변:

2015년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by