ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Color Spectrum in examples

Solved!
Go to solution

In the ColorMatching Example, http://zone.ni.com/devzone/cda/epd/p/id/5549, it states that the the "VI uses another example to learn the color spectrums".  I am assuming that this other example is the ColorLearn Example, http://zone.ni.com/devzone/cda/epd/p/id/5550.

 

However, the ColorLearn Example returns either a 16x16, 30x30, or 58x58 array depending on color sensitity while the ColorMatching Example uses a 4x30 array for the spectrum.

 

How do I connect the two together?

0 Kudos
Message 1 of 2
(3,727 Views)
Solution
Accepted by topic author chinghwayu

Figured it out ... the output of IMAQ ColorLearn is a 1D array that describes the color spectrum.  The reason for the 2D array is to display the histogram.

0 Kudos
Message 2 of 2
(3,723 Views)