Borrar filtros
Borrar filtros

how to convert some binary data to image in matlab

2 visualizaciones (últimos 30 días)
Aparna
Aparna el 31 de Mayo de 2011
Editada: Walter Roberson el 17 de En. de 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 comentario
Oleg Komarov
Oleg Komarov el 31 de Mayo de 2011
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 31 de Mayo de 2011
Try IMREAD.

Más respuestas (2)

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

Iniciar sesión para comentar.


Vijan Kaush
Vijan Kaush el 17 de En. de 2017
Editada: Walter Roberson el 17 de En. de 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

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by