IMAGE MANIPULATON USING NESTED FUNCTION

1 visualización (últimos 30 días)
TRAVIS
TRAVIS el 1 de Abr. de 2013
I am writing a code for image manipulation and need to know how to set MAXCOL AND MAXROW by using size() function. Thanks I am new to matlab if my question seems premature

Respuesta aceptada

Matt J
Matt J el 1 de Abr. de 2013
[maxcol, maxrow] = size(YourImage);
  2 comentarios
Walter Roberson
Walter Roberson el 1 de Abr. de 2013
Better yet,
[maxcol, maxrow, maxpane] = size(YourImage);
If your image is RGB then the two-output version will give you the wrong result for maxrow.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by