How to get the pixel color values in one command?
Mostrar comentarios más antiguos
I want to get the color pixel value in one line command or syntax.
I know we have to use get below syntax Red=Image(x,y,1); Green=Image(x,y,2); Blue=(Image(x,y,3);
But it make program too long.
I have to check the color of each pixel in image. So Is there any other syntax to get the specified pixel color range in one array.
I want the output like this
= 255 242 0
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 22 de En. de 2014
disp(reshape(Image, [], 3));
1 comentario
saravanakumar D
el 22 de En. de 2014
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!