Go to Post ...When you use ";"s instead of "."s; darn Java; - machman-2823 [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 29-01-2012, 08:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Finding vertices of a non-rectangle

I think you have about exhausted the capabilities of the particle library.

The next step, if you are ready for it is to use the bounding box from the particles to efficiently inspect areas of the original image with edge detection, line fitting, or even rectangle fitting. I believe there are ones that work on binary, but the better ones work on monochrome images. Doing them on the full frame will be quite expensive, but on a small subset should be fine.

Greg McKaskle
Reply With Quote
Reply


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