Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Intersections » SegmentArrayIntersections

SegmentArrayIntersections


Computes a common points or segment of any segments from the set.

Header:AVL.h

Syntax

C++
C#
 
void avl::SegmentArrayIntersections
(
	const atl::Array<avl::Segment2D>& inSegments,
	atl::Array<avl::Point2D>& outIntersectionPoints,
	atl::Array<int>& outFirstIntersectionIndices,
	atl::Array<int>& outSecondIntersectionIndices,
	atl::Array<avl::Segment2D>& outOverlapSegments,
	atl::Array<int>& outFirstOverlapIndices,
	atl::Array<int>& outSecondOverlapIndices
)

Parameters

Name Type Default Description
inSegments const Array<Segment2D>& Input segments
outIntersectionPoints Array<Point2D>& Intersection points
outFirstIntersectionIndices Array<int>& First indices of the input segments which corresponds to the intersection points
outSecondIntersectionIndices Array<int>& Second indices of the input segments which corresponds to the intersection points
outOverlapSegments Array<Segment2D>& Overlap segments
outFirstOverlapIndices Array<int>& First indices of the input segments which corresponds to the overlap segments
outSecondOverlapIndices Array<int>& Second indices of the input segments which corresponds to the overlap segments

Examples

SegmentArrayIntersections performed on segments.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.