Thread: Camera tracking
View Single Post
  #1   Spotlight this post!  
Unread 16-01-2011, 23:31
mika.perlin mika.perlin is offline
Registered User
FRC #0955
 
Join Date: Jan 2010
Location: Corvallis, OR
Posts: 17
mika.perlin is an unknown quantity at this point
Camera tracking

In the process of tracking pegs with the camera with code I make (for obvious reasons) a binary image out of the camera image. The function to do that takes six integer inputs (min/max for three values depending on whether you're making an HSL, HSV, HSI, or RBG image). This is all fine, but look where I may I can't find the domain for these inputs. Anybody have any idea?
We're programming in Java (though it should be the same for C++) and I'm looking at threshold functions in the the wpilibj here: http://www.wbrobotics.com/javadoc/ed...olorImage.html

I'm making the binary image based off of HSL, so I can guess a domain of 0-360 for hue (if you wikipedia HSL you'll see why), but there's no intuitive domain for the other two values, especially as they are integers (if they were doubles or floats maybe I'd guess 0-1).

On a side note, does anybody know how to make the classmate display a live binary image instead of the normal camera image?