View Single Post
  #1   Spotlight this post!  
Unread 13-02-2012, 22:16
jkudo jkudo is offline
Registered User
FRC #2168
 
Join Date: Feb 2011
Location: USA
Posts: 3
jkudo is an unknown quantity at this point
Image Processing - Getting an Angle

I've been scouring the forums all season for all image processing questions and answers and I appreciate everyone who has contributed to any of those forums. That being said, I now have a question of my own: is it possible to calculate an angle (camera to target) from the default available fields to Java users using the ParticleAnalysisReport?

I have reviewed the various simpler calculations to get an angle but they all require information that I don't think I am able to get through the currently wrapped NIVision methods. We were planning to compare the left and right side heights of the quadrilateral but I can't find an easy way to do this through the current Particle Report. I can't come up with any clever ways to manipulate the bounding rectangle information to come up with an angle to the target.

Any help would be appreciated! Thank you in advance.
Reply With Quote