필터 지우기
필터 지우기

how to convert some binary data to image in matlab

조회 수: 2 (최근 30일)
Aparna
Aparna 2011년 5월 31일
편집: Walter Roberson 2017년 1월 17일
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
Oleg Komarov
Oleg Komarov 2011년 5월 31일
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

채택된 답변

Jan
Jan 2011년 5월 31일
Try IMREAD.

추가 답변 (2개)

KIRAN kumar
KIRAN kumar 2013년 1월 17일
uigetfile can also be to read image from any directory
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 1월 17일
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일
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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by