06-16-2006 09:34 AM
I have found that the IMAQ Histogram or Histograph VI’s do not work on single precision (SGL) images. The histogram generates a starting value and an incremental value which seem to correlate to the first bin in your bin range that actually contains “counts” rather than the first bin in the range. The problem is obvious when a Histograph is wired to a waveform graph.
The attached VI compares the output of the IMAQ histograph vi and the LabVIEW general histogram vi. The general histogram works correctly. The vi generates and analyzes an image of Gaussian noise.
Can you please verify that this is indeed a bug with the IMAQ histogram algorithms or advise me in the correct use of the IMAQ histogram vi?
Thanks,
-cb
06-16-2006 10:13 AM
Looks good to me. Is this what you expect?
Matt
06-16-2006 02:48 PM
Matt,
I might be looking at a version problem - I get different results on another machine. Can you tell me what version of IMAQ vision you are running?
-cb
06-19-2006 10:59 AM
LabVIEW 8.0.1
IMAQ 3.5.1
Vision 8.0.0
Good Luck!
Matt
06-20-2006 07:42 PM
06-21-2006 07:47 AM
David,
I found that the histogram worked correctly on IMAQ 7.1.1, but did not work on version 7.1.0. I have attached a screen shot of the application from the incorrect 7.1.0 histogram. The histogram should be centered around zero, but is shifted to the right.
As an aside, I also had problems with the IMAQ Quantify.vi in another application. I was using it to compute pixel statistics (mean, min, max, etc) in the "Global Report" output cluster. It did not compute the statistics correctly and I ended up using the IMAQ Histogram.vi to derive those.
Please let me know what you find!
-10
06-22-2006 11:55 AM