View Single Post
  #4   Spotlight this post!  
Unread 15-01-2014, 20:29
RaxusPrime's Avatar
RaxusPrime RaxusPrime is offline
Driver and Programming Captain
AKA: Brennen Martin
FRC #3883 (DataBits)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Cottage Grove, Minnesota
Posts: 15
RaxusPrime is on a distinguished road
Re: Multiple Target Targeting

Quote:
Originally Posted by Greg McKaskle View Post
The LV code uses the shape, or rather the relative location of the vertical and horizontal elements to identify a hot left, hot right, or not hot target. In retrospect, that would have been a better way to encode the results.

If you look at the ranking code, you will see it call Rank HV combos. This is where it looks through the list of particles, pairs them up, and classifies them as left or right.

Greg McKaskle
Alright cool I think I see where you're coming from, the HV Combo is in one of the sub-VI's right?

Quote:
Originally Posted by faust1706 View Post
I gave this thread some time so someone of more knowledge on the topic of computer vision in labview could help, but....that doesn't seem to be the case.

You could find the centers of the two targets, 1 and 2, and check to see if the x component of 1 < x component of 2. I'm not sure how easily it would be to extract the center from a target, but...that is the way to do it. Then, when you know which one has the lower x component, you could save off that variable as left and the other as right.
Well I really appreciate the help, I didn't think of putting it like that. And I know that the center variable is one of the variables that is unbundled from target info, I'll look into it. Thanks again for your input!
Reply With Quote