View Single Post
  #4   Spotlight this post!  
Unread 11-10-2012, 18:20
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

Ok I understand the thresholds now, but I'm still unsure how to isolate a color.
I can see how I might be able to utilize the getInverseThreshold() function but my testing has had little success.
This is compounded by the fact that I don't understand the threshold combination command seen below.
Code:
WPIBinaryImage threshold = red.getAnd(green).getAnd(blue);
There is also a getOr() function.
I don't fully understand how the implementation of these works.

on a side note where can I find the actual code for all these functions. If i had that it might be unnecessary for me to pose these questions.
Reply With Quote