histogram issue

Hi all,

I am recently using Histogram for analyzing CCD data. I encountered both Histogram function and imageHistogram function. I found out if I tune the bin size etc., the two may even overlap. So what I would like to know is in which sense these two functions are different, and how to better use them for different purpose.

Thnx

Rainbow
Hello Rainbow,

ImageHistogram was designed to histogram images. As such it supports an ROI and allows you to select a particular layer in an image (e.g., rgb channel). ImageHistogram is also limited to 256 bins (in the case of 8-bit data) or 65535 bins in the case of 16-bit data.

The regular Histogram operation on the other hand provides much more control over the number of bins/bin sizes as well as options for computing probability distributions etc. So, while there is some similarity there are sufficient differences between the two. Clearly you could apply the regular histogram operation to images but you would have to be careful with setting up your bins and you'd have to duplicate or extract data if you had to consider a specific layer or an ROI.

A.G.
WaveMetrics, Inc.