the below code changes rgb image to grey ,can the same partision done without changing the image to grey??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Abr. de 2013
Editada: Image Analyst
el 4 de Abr. de 2013
I'm not sure of the question. You cannot do the same thing by doing something different, obviously. So you can't change the image to gray without changing the image to gray. If you don't want to call rgb2gray(), then don't.
9 comentarios
Image Analyst
el 5 de Abr. de 2013
See my color detection demo where I find red: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!