Go to Post I would like the game to be called Sanity. Just for irony's sake. - Keri Lynne [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 29-01-2012, 01:06
alec.heif alec.heif is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: United States
Posts: 2
alec.heif is an unknown quantity at this point
Finding vertices of a non-rectangle

Our team is attempting to use the Axis 206 camera with a ring light mounted to it to detect the quadrilateral formed by the retro-reflective tape and use coordinates from that, combined with knowing our robot's current heading from a gyroscope, to find our position in 3D space and distance to the hoop. (I say quadrilateral instead of rectangle because we want to be able to calculate distance to the target from positions other than right in front of the basket and perpendicular to the alliance wall, which means that the image we see will likely be distorted into some sort of trapezoid).

We have managed to find the quadrilateral, and can use the particle analysis tool to find the X and Y coordinates of its center of mass. What we have been unable to do is find the coordinates (in pixels) of the four vertices that make up the trapezoid. The "Particle Analysis" block in LabVIEW allows us to find the vertices of the bounding box that encloses the outer edges of the trapezoid (forming a rectangle), but so far we have been unable to find any way to get the four vertices of the trapezoid. Is there something I'm missing here?

Thanks a bunch!
Reply With Quote
 


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 11:32.

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