# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Vision Color Spectrum

Hi I'm trying to devide Color using IMAQ Colorlean.vi

It has Color Spectrum indicator then that has 1D Array which has 16 element(when set color sensitivity = low )

so i want to know what is the standard to devide color spectrum 16 element?

and what is each element 0~16 standard color?

EX) 1D Array Index 14 mean black

15 mean white

Message 1 of 12
(981 Views)

## Re: Vision Color Spectrum

I'm not sure what you mean, maybe post what you have?

I'd convert to HSL and do a threshold (or 2, min and max, being careful, because H is a circular scale (the max value is R IIRC, so is the min value)) on the H channel.

That will instantly select pixels based on color, and it will be (way) faster then a learning algorithm.

Message 2 of 12
(975 Views)

## Re: Vision Color Spectrum

I have test program for color spectrum.

This program divide color spectrum in ROI.

If you move ROI, color spectrum will change.

Color Spectrum has 16 element 1D array

then i found 8 element Color.

my destination is found that 16 element Color

Message 3 of 12
(923 Views)

## Re: Vision Color Spectrum

Do you get more colors if you set Color Sensitivity to medium or high?

If you convert the ROI to HSL and do a histogram, you could do any number of color subdivision you want. More importantly, you'd actually be in control over what you're doing.

A few caveats though:

H will be messed up if L is low.

H is cyclic, so the min H 'connects' to max H.

Message 4 of 12
(913 Views)

## Re: Vision Color Spectrum

Here is a documentation that explains how the color spectrum is divided depending on the sensitivity:

https://www.ni.com/docs/en-US/bundle/ni-vision-concepts-help/page/color_spectrum.html

Regarding which color is represented by which element of the spectrum array, I couldn't find more info than what you already have.

Message 5 of 12
(879 Views)

## Re: Vision Color Spectrum

but that page doesn't have every element..

i want to know what criteria for divide color and represent color

i'm still try to find that

Message 6 of 12
(855 Views)

## Re: Vision Color Spectrum

color spectrum has diffrent number of element when set Color Sensitivity to Low or medium or high.

low - 16 element

medium - 30 element

high -  58 element

Message 7 of 12
(852 Views)
Solution
Accepted by 뺴꼼

## Re: Vision Color Spectrum

There is an example named "Color Matching.vi" that has a nice visualization of the medium-sensitivity spectrum.

With a bit of manipulation, you can come up with this (not sure how to get other sensitivities though):

Message 8 of 12
(833 Views)

## Re: Vision Color Spectrum

your anser was what i find.

thank you so much but i already find that example named color matching.vi

then there doesn't have that color image what you upload..

is that color matching.vi?

this is color mathching.vi in my Labview 2018 example.

Message 9 of 12
(826 Views)

## Re: Vision Color Spectrum

The code is very simple, just reusing the array indicator from the example.

I've added my attempts to get Low and High sensitivities by customizing the control and changing the number of plots, but then the components seem strange. Medium seems correct though.

Message 10 of 12
(823 Views)