Filter löschen
Filter löschen

how to convert some binary data to image in matlab

2 Ansichten (letzte 30 Tage)
Aparna
Aparna am 31 Mai 2011
Bearbeitet: Walter Roberson am 17 Jan. 2017
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 Kommentar
Oleg Komarov
Oleg Komarov am 31 Mai 2011
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 31 Mai 2011
Try IMREAD.

Weitere Antworten (2)

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

Melden Sie sich an, um zu kommentieren.


Vijan Kaush
Vijan Kaush am 17 Jan. 2017
Bearbeitet: Walter Roberson am 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

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by