how to convert some binary data to image in matlab

hai iam doing my M.Tech prjct in matlab. i dont know hoe to give an image as input. so plz clarify my doubt

댓글 수: 1

http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

 채택된 답변

추가 답변 (2개)

KIRAN kumar
KIRAN kumar 2013년 1월 17일

0 개 추천

uigetfile can also be to read image from any directory

댓글 수: 1

No, uigetfile() only returns the file name (and path). It does not read the file. You need imread() for that.

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

Vijan Kaush
Vijan Kaush 2017년 1월 17일
편집: Walter Roberson 2017년 1월 17일

0 개 추천

I = imread('image.jpg'); % read jpg image
Igray = rgb2gray(I); % convert rgb image to gray scale image
Ibinary = im2bw(Igray,graythresh(Igray)); % convert gray image to binary image

카테고리

도움말 센터File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

질문:

2011년 5월 31일

편집:

2017년 1월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by