Question: Histogram of an image

I have an BW image, which i can read in with ImageTools. now i simply want a histogram of it. the plothistogram function works, but i am not sure that it does right, because the numbers in the plot seem far to big. so i am trying to use the histogram function but i am only able to plot a histogram for a single vector of my image. is there an easy way to use the histogram function for the entire array? as the next step, i would like to compute the variance of the histogram. this i can also only do for a single vector. i tried out some loops, but the computation time is huge. thanks for your help.

Please Wait...