View Single Post
  #3   Spotlight this post!  
Unread 11-10-2012, 14:32
Stonemotmot Stonemotmot is offline
Registered User
FRC #0486
 
Join Date: Sep 2011
Location: United States, Pa
Posts: 53
Stonemotmot is an unknown quantity at this point
Re: Using thresholds on WPICameraExtension classes

Thanks for the info. i think I understand how the thresholds work. But I’m not clear on how to isolate a color. I can see using a combination of inverted and normal thresholds to do this. But in my testing I have had very little success. This is partly because im not sure how to combine them. team 237 used a variant of the code below but I don’t see much logic in how this executes.
There is also a .getOr() function which I might be able to use.
Code:
WPIBinaryImage threshold = red.getAnd(green).getAnd(blue);


on a side note where did you get that code snippet?
Reply With Quote