Back to FabImage Library website

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

SegmentSurface_PlanarCells


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Computes a list of planar cells of a surface

Syntax

C++
C#
 
void fil::SegmentSurface_PlanarCells
(
	const fil::Surface& inSurface,
	ftl::Optional<const fil::Region&> inRoi,
	const int inCellWidth,
	ftl::Optional<int> inCellHeight,
	const double inFlatnessNoiseLevel,
	const float inMinCellCoverage,
	ftl::Array<fil::Region>& outPlanarCells,
	ftl::Array<fil::Segment3D>& diagPlanarCellNormals,
	ftl::Array<fil::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