Borrar filtros
Borrar filtros

how to represent an image in grid format?

2 visualizaciones (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 7 de Oct. de 2012
how to represent an image in grid format?

Respuestas (1)

Image Analyst
Image Analyst el 7 de Oct. de 2012
imageArray = imread(filename);
imageArray will be a rectangular grid/array/matrix.
  2 comentarios
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 7 de Oct. de 2012
Thanks Image Analyst !! I was asked by a student to represent the input image in grid format. how to do it?
Image Analyst
Image Analyst el 7 de Oct. de 2012
Well maybe I don't know what he means. In MATLAB, an image is a 2D array, unlike vector formats like EPS. What type of file is the student's image stored in? Is it a PNG, BMP, TIFF, or JPG file? If so it's already in a rectangular grid and you can simply use the imread code I gave you. If it's a vector format like EPS, I have no idea because I don't do image analysis on those types of computer graphics (clip art) files.

Iniciar sesión para comentar.

Categorías

Más información sobre Structures 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