Borrar filtros
Borrar filtros

To Know the total number of pixels which belongs to one color

1 visualización (últimos 30 días)
leow
leow el 19 de Ag. de 2013
Hi,
May I know is there any coding that can be used to know the total number of pixels that belongs to certain color?
Thanks.

Respuestas (1)

Sabarinathan Vadivelu
Sabarinathan Vadivelu el 19 de Ag. de 2013
I = imread('peppers.png');
RedPlane = I(:,:,1);
GreenPlane = I(:,:,2);
BluePlane = I(:,:,3);
This how you may extract separate color planes in an RGB Image
  1 comentario
leow
leow el 19 de Ag. de 2013
Hi,
I have set my coding to C(im>=5.5 & im<6.5) = {uint8(cat(3,0,0,255))};
Is there any coding that can be use to count the number of pixel that belongs to the range of C(im>=5.5 & im<6.5)?
Thanks.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by