How could I mark other than Blue Pixels in this image?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Murat Kocaman
el 4 de Sept. de 2018
Comentada: Walter Roberson
el 4 de Sept. de 2018
Hello,
I would like to mark other than blue pixels.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195056/image.jpeg)
Later I will compare these pixels with the other image pixel values. Is there anyone helping on this issue?
2 comentarios
Walter Roberson
el 4 de Sept. de 2018
Define "blue" for your purposes. Is (93, 138, 168) blue? It is for legal purposes -- it is "Air Force Blue".
Respuesta aceptada
Walter Roberson
el 4 de Sept. de 2018
Editada: Walter Roberson
el 4 de Sept. de 2018
[R, C] = find(~MaskIndicatingWhichPixelsAreBlue);
image(YourRGBImage);
hold on
markersize = 8;
scatter(C(:), R(:), markersize, 'r*');
hold off
1 comentario
Walter Roberson
el 4 de Sept. de 2018
I just added a small correction to mark the pixels that are not blue.
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!