imsubtract(data(:,:,1), rgb2gray(data));

imsubtract(data(:,:,1), rgb2gray(data));
how does the above function work??i know the operation of imsubtract in general.Here i dont understand the part "data(:,:,1)" where 'data' is an image and what does "(:,:,1)" specify here??plz anyone respond to this and give me answer as soon as possible..thankyou

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 24 de En. de 2012

0 votos

data(:,:,1) specifies the first three dimensional slice of data. In an RGB image, this would be the R slice (plane).

3 comentarios

Manoj Murali
Manoj Murali el 24 de En. de 2012
thanq for d answer..but can u b more elaborate..??what is the meaning of the semicolon symbols and wat is that '1' at the end inside the brackets.how is that related to the image named 'data'??dont mind if am asking a very simple question!!
David Young
David Young el 24 de En. de 2012
Have a look at http://www.mathworks.co.uk/help/techdoc/ref/colon.html
David Young
David Young el 24 de En. de 2012
... and also www.mathworks.co.uk/help/techdoc/math/f1-85462.html

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by