LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Color Spectrum

Solved!
Go to solution

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

0 Kudos
Message 1 of 12
(1,391 Views)

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.

0 Kudos
Message 2 of 12
(1,385 Views)

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

 

0 Kudos
Message 3 of 12
(1,333 Views)

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.

0 Kudos
Message 4 of 12
(1,323 Views)

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.

0 Kudos
Message 5 of 12
(1,289 Views)

thanks to your response

 

i already saw that page.

 

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

0 Kudos
Message 6 of 12
(1,265 Views)

HI thanks to your response.

 

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

 

I will try to do with your advice thanks

0 Kudos
Message 7 of 12
(1,262 Views)
Solution
Accepted by topic author 뺴꼼

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):

raphschru_0-1680505801558.png

 

0 Kudos
Message 8 of 12
(1,243 Views)

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.

0 Kudos
Message 9 of 12
(1,236 Views)

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.

0 Kudos
Message 10 of 12
(1,233 Views)