06-15-2008 07:20 PM
06-16-2008 07:55 PM
06-16-2008 08:23 PM
06-16-2008 09:22 PM
I played around with ColorLearn recently and I have a few guesses:
I would guess the bins are based on color wavelengths. Each single color would be split between two bins if it falls between those two color wavelengths. I think hue is the only variable of interest.
I would guess the results of ColorLearn is a histograph of all the pixel colors in the image, scaled to a sum of one. If you have all green and blue pixels, you will get values only in those bins. If you had a rainbow, you would have a pretty even distribution throughout the bins.
Like I said, all guesses, but you could easily verify if they are true.
Bruce
06-16-2008 09:45 PM
Hi Bruce,
Thanks for the help. I have already had a bit of a play to investigate my guesswork as to how the colors are binned, and came up with the attached VI (apologies for the poor layout etc.!)
I'm using nested for loops to work with all possible H and S values (using HSI coding) using a fixed intensity. As a result, I'm displaying outputs as two dimensional (I don't think very well in 3-D).
The top half of the block diagram creates a one pixel image for each colour and uses the results of the ColorLearn VI to feed into an intensity graph of the ColorLearn bin chosen (as a function of H and S).
The lower half of the diagram is really just eye candy to help me visualise what each of these H and S values actually look like by creating an image with a pixel for each color.
Assuming it works OK for you, you can probably see that there is definitiely a relationship between H and the color bin chosen, but it's not completely independent of S and I.
Also, there is presumably a formula that determines when the color should be binned as black or white (no greys allowed!) which are values 56 and 57.
That's as far as I got before deciding to post to the forum!
Cheers
Chris
06-17-2008 12:26 PM
06-17-2008 09:54 PM
06-18-2008 05:40 PM
Hello Chris C G,
I am working with our Vision Product Experts to come up with an answer for you as soon as possible. I will post to this forum tomorrow and let you know what I find out. Thanks for your patience.
06-19-2008 10:37 AM
06-19-2008 03:27 PM