Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Segmentation 3D » SegmentSurface_PlanarCells

SegmentSurface_PlanarCells


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Computes a list of planar cells of a surface

Syntax

C++
C#
 
void avl::SegmentSurface_PlanarCells
(
	const avl::Surface& inSurface,
	atl::Optional<const avl::Region&> inRoi,
	const int inCellWidth,
	atl::Optional<int> inCellHeight,
	const double inFlatnessNoiseLevel,
	const float inMinCellCoverage,
	atl::Array<avl::Region>& outPlanarCells,
	atl::Array<avl::Segment3D>& diagPlanarCellNormals,
	atl::Array<avl::Region>& diagCellRegions
)

Parameters

Name Type Range Default Description
Input value inSurface const Surface&
Input value inRoi Optional<const Region&> NIL Range of pixels to be processed
Input value inCellWidth const int 2 - 16 Width of a single cell in the girds coordinate system
Input value inCellHeight Optional<int> 2 - NIL Height of a single cell in the girds coordinate system
Input value inFlatnessNoiseLevel const double 0.0 - 1.0 0.04D
Input value inMinCellCoverage const float 0.0 - 1.0 0.3f Minimum percentage of valid points that a planar cell has to have
Output value outPlanarCells Array<Region>&
Diagnostic input diagPlanarCellNormals Array<Segment3D>& Segments representing the normals of computed cells,
Diagnostic input diagCellRegions Array<Region>& Regions of all both planar and non-planar cells