How count the number of occurence beyond a threshoold value in a matrix

2 visualizaciones (últimos 30 días)
Suppose there is a matrix of a = 512*512 elements. What is the count of the elements having more than 255 in the matrix? Kindly suggest.?

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 17 de Nov. de 2017
sum(a(:)>255)

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox 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