Effacer les filtres
Effacer les filtres

How could I mark other than Blue Pixels in this image?

2 vues (au cours des 30 derniers jours)
Murat Kocaman
Murat Kocaman le 4 Sep 2018
Hello,
I would like to mark other than blue pixels.
Later I will compare these pixels with the other image pixel values. Is there anyone helping on this issue?
  2 commentaires
Walter Roberson
Walter Roberson le 4 Sep 2018
Define "blue" for your purposes. Is (93, 138, 168) blue? It is for legal purposes -- it is "Air Force Blue".
Murat Kocaman
Murat Kocaman le 4 Sep 2018
Yes I did. My problem is on marking. I couldn't mark them.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Sep 2018
Modifié(e) : Walter Roberson le 4 Sep 2018
[R, C] = find(~MaskIndicatingWhichPixelsAreBlue);
image(YourRGBImage);
hold on
markersize = 8;
scatter(C(:), R(:), markersize, 'r*');
hold off
  1 commentaire
Walter Roberson
Walter Roberson le 4 Sep 2018
I just added a small correction to mark the pixels that are not blue.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by