Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Counting occurences of data in large image matrix
Posted:
Oct 18, 1997 9:13 PM


I do not have the image processing toolbox. I have a 256 by 256 grayscale image in uint8 format (each entry in the matrix is an integer betwee 0 and 255 inclusive).
I have tried ghist, but it takes inordinately long on my 486 machine.
I would like a fast routine to count the occurrence of each 0 in my matrix, each 1 in my matrix, each 2 in my matrix,..., each 255 in my matrix.
Any suggestions?  David Arnold College of the Redwoods Eureka, California 95501



