Up | STC-0001-MinimumPolygonToPolygonDistance | STC-0003-DictionarySort | STC-0006-Barcode | STC-0008-Visualize3D | STC-0009-DataMatrix | STC-0011-ImageFilter | STC-0012-EpiPolarLine3D | STC-0013-DisplayResult | STC-0016-ScalarList | STC-0018-DisplayResult3D | STC-0019-CylinderMonoPause3D | STC-0020-ExcelReport | STC-0021-ImageFromPoints3D | STC-0025 PolygonExtrema | STC-0026-PolygonSectorDivider | STC-0028-PointExtrema | STC-0029-HTTP-POST-SENDER | STC-0032-PolygonCorners | STC-0034-PolygonFilter2D | STC-0036-SortLocate3D | STC-0038-FitLine3D | STC-0039-EllipseFit2D | STC-0042-BoundingRect2D | STC-0044-MatchShapes2D | STC-0045-MinAreaRect2D | STC-0047-ConvexHull2D | STC-0053-SheetCalibration3D | STC-0055-FindPaths2D | STC-0060-FindPeaks3D | STC-0061-FindCylinder3D | STC-0062-RefObjCalibration3D | STC-0063-ValidateExtReferences | STC-0064-LocatePaths3D | STC-0065-RadialPolygonDistance | STC-0066-PolygonMaskImage | STC-0070-ZBar | STC-0078-GridMapper | STC-0082 MultiExpoMerger | STC-0083 DisparityMap3D | STC-0084 StereoRectify3D

Release Notes
 

  

 
STC-0001-MinimumPolygonToPolygonDistance

The component is used too locate the minimum distance between two polygons

This tool computes the smallest distance between two polygons or paths.
A path is an open polygon. The algorithm assumes that the shortest distance is
found either between a point from each polygon or between a point in one
polygon and an edge in the other.

NOTE1: The ROI should be set to "whole image". The image is ignored.
Setting the ROI will cause unecessary processing and increased execution
time.

NOTE2: If the two polygons intersect, the algorithm will in general not compute
the correct intersection point and will not get a distance of zero. This is
because, as explained above, the smallest distance is always found between a
point and an edge, whereas in this case the correct shortest distance may be
between two intersecting edges. Note however, that if a polygon is only self-
intersecting the algorithm will work correctly.

Setup

Reference

Configuration

Draw

Input to the Tool:  
Inputs: 1.Reference
2. Configuration
  - Input Polygons
    - Polygon1/Polygon2 is a path (an open polygon)
  - Simplify polygons or paths
    - Tolerance
3. Draw
  - Minimum Distance
    - Show Distance Points
    - Print Color
    - DrawLine
  - All distances
    - Show all minimum distances from polygon1
    - Show all minimum distances from polygon2
    - Colors for all-minimum distance vectors
  - Incoming polygons
    - Draw
    - Draw Point Markers
    - Polygon Colors
   

Visualisation

Visualization colors are given as text. Either by name or hex code:
Red, Yellow, Blue, White, BtnFace, etc....
$FFFF00 (=Cyan), $FF0000 (=Blue), etc...

Results  

The results reported returned are:

  • Distance - the minimum distance
  • Polygon1NearestPoint - nearest point on polygon 1 given in incoming reference coord.
  • Polygon2NearestPoint - nearest point on polygon 2 given in incoming reference coord.

The STC-2011-0001-MinimumPolygonToPolygonDistance component is produced by Tordivel AS.

All rights reserved copyright 2011

Profiles
1: STP-2012-0026-ConvexHull
   
 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.