03-30-2023 03:39 AM
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
Solved! Go to Solution.
03-30-2023 03:48 AM
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.
03-30-2023 11:33 PM
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
03-31-2023 05:01 AM
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.
04-01-2023 09:57 PM
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.
04-02-2023 09:37 PM
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