I’d like to know the RGB value of a signature. Is there a way to do this? I can’t find anything so far.
Hi,
Maybe this one got lost in the shuffle. Any answer on this one?
Thanks,
Shari
Hello Shari,
I believe the ColorSignature struct has a member (m_rgb) that is the averaged rgb value. Is this what you mean?
Edward
Hi,
I’m guessing that is what I need, however, I’m having trouble figuring out how to get to the ColorLut from my code. I’m running this from hello_pixy and therefore I believe I should add some code to pixy.cpp, but can’t figure out where to get the ColorLut. Any other pointers would be appreciated.
Thanks,
Shari
Hello Shari,
I’m missing some context I think. Is your code on the firmware side? Can you describe in a little more detail what you are trying to accomplish?
Edward
I have a host side application. I would like to know the RGB value of a signature, so I can describe the color of the object. I prefer not to have to compile any firmware until there is a gcc version available. Is this possible? As you say, I see the m_rgb member but trying to figure how to get to it from hello_pixy via libpixyusb.
Thanks,
Shari
Hi Edward,
Any more info you can give me on this?
Thanks,
Shari
Hello Shari,
Look for the line in cccmodule.cpp:
palette[i] = m_blobs->m_clut.m_signatures[i].m_rgb;
This is where PixyMon is referencing the average rgb value.
I should point out that the average rgb value is only an average. It’s not a sufficient representation of a color signature. Right now it is used only for user feedback in PixyMon.
Hope this helps!