extract only white pixels from an image

2 visualizaciones (últimos 30 días)
Mary Baratzadeh
Mary Baratzadeh el 28 de Dic. de 2019
Comentada: Mary Baratzadeh el 30 de Dic. de 2019
How can I extract mean and variance of only white pixels of an image?

Respuestas (1)

Image Analyst
Image Analyst el 28 de Dic. de 2019
Editada: Image Analyst el 28 de Dic. de 2019
What value do you consider "white"? Let's say it's 230. Then you can get a binary image
binaryImage = grayImage >= 230;
Now, exactly what does "extract" mean to you? You want to consider all the gray values in the binary image? If so do
maskMean = mean(grayImage(binaryImage));
maskSD = std(grayImage(binaryImage));
maskVar = var(grayImage(binaryImage));
  1 comentario
Mary Baratzadeh
Mary Baratzadeh el 30 de Dic. de 2019
excuse me, my mean is calculate the average white pixels of an image

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by