how to convert some binary data to image in matlab

4 vues (au cours des 30 derniers jours)
Aparna
Aparna le 31 Mai 2011
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 commentaire
Oleg Komarov
Oleg Komarov le 31 Mai 2011
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 31 Mai 2011
Try IMREAD.

Plus de réponses (2)

KIRAN kumar
KIRAN kumar le 17 Jan 2013
uigetfile can also be to read image from any directory
  1 commentaire
Walter Roberson
Walter Roberson le 17 Jan 2013
No, uigetfile() only returns the file name (and path). It does not read the file. You need imread() for that.

Connectez-vous pour commenter.


Vijan Kaush
Vijan Kaush le 17 Jan 2017
Modifié(e) : Walter Roberson le 17 Jan 2017
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

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by