Go to Post I think it's pretty cool that the Black Eyed Peas and other celebrities are willing to take up their time to come celebrate science and technology with us. - BIGWILLI2081 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi