Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

How do I use the IMAQ Histogram and IMAQ Histograph VI's with 16 bit Images?

Primary Software: LabVIEW Development Systems>>Base Package
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>IMAQ Vision for LabVIEW

Problem: I use the IMAQ Histogram and IMAQ Histograph VI's with my 16 bit image, but I only get 256 levels of histogram data. This is only 8 bits. I can’t get the 65536 levels or 16 bits of data I expect.

Solution: The IMAQ Histogram and IMAQ Histograph VI's require the 'Number of Classes' and 'Interval Range' to be filled with appropriate values to accommodate image data larger than 8 bits or 256 levels of data.

For 16 bit images, the 'Number of Classes' would be 2^16 or 65536. The 'Interval Range' corresponds to a signed 16 bit integer which is -32768 to 32767.

This same method can be used to get histogram data for 10, 12, and 14 bit images.

The attached example shows a created 16 bit image and the corresponding histogram and histograph data.

Related Links:

Attachments:


16_bit histogram example.vi


Report Date: 08/29/2005
Last Updated: 09/26/2005
Document ID: 3OSGAEMQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit