View Single Post
  #22   Spotlight this post!  
Unread 19-01-2013, 10:31
Chimera0x694's Avatar
Chimera0x694 Chimera0x694 is offline
Registered User
AKA: Kelly Malone
FRC #1684 (The Chimeras)
Team Role: Programmer
 
Join Date: Dec 2012
Rookie Year: 2010
Location: Lapeer,MI
Posts: 10
Chimera0x694 is just really niceChimera0x694 is just really niceChimera0x694 is just really niceChimera0x694 is just really nice
Re: Values for Image Proccessing

Code:
                //                                   RED    GREEN   BLUE
                if (BlueAlliance) {
//                    greenStuff = image.thresholdRGB(0,140, 240,255, 0,255);
                    greenStuff = image.thresholdRGB(0,140, 200,255, 0,255);
                } else {
                    greenStuff = image.thresholdRGB(100,200, 225,255, 100,200);  // this was sorta OK
                }
This was our thresholding code, and the lighting truly did effect the values. we found this out when our auto targeting would work perfectly at our build facility, and then not work at competitions. we found that at the competitions, the thresholds were drastically different.
__________________

"How do you pronounce your name?"
We get asked this question a lot. Or, We are called "chi-mare-ahs" Or, "chI-mare-ahs"
To set the record straight, It's pronounced "kI-mare-ahs"

2011-
Ranked 172nd in the state of Michigan
2012-
Ranked 24th in the state of Michigan
Kettering University District-Quality Award
Reply With Quote