SegmentSurface_Planes


Segments a surface into planes.

Syntax

C++
C#
Python
 
def SegmentSurface_Planes(
	inSurface: Surface,
	/,
	*,
	inRoi: Region | None = None,
	inCellWidth: int = 16,
	inCellHeight: int | None = None,
	inFlatnessNoiseLevel: float = 0.04,
	inMaxIterations: int = 1000,
	inMaxAngleDeviation: float = 15.0,
	inMaxDistanceDeviation: float = 0.1,
	inMinCellCoverage: float = 0.3,
	inMinPlaneArea: int = 1
)
-> (
	outPlaneRegions: list[Region],
	outPlanes: list[Plane3D],
	diagPlanarCells: list[Region]
)

Parameters

Name Type Range Default Description
Input value inSurface Surface
Input value inRoi Region | None None Range of pixels to be processed
Input value inCellWidth int 2 - 16 Width of a single cell in the girds coordinate system
Input value inCellHeight int | None 2 - None Height of a single cell in the girds coordinate system
Input value inFlatnessNoiseLevel float 0.0D - 1.0D 0.04
Input value inMaxIterations int 1 - 1000
Input value inMaxAngleDeviation float 0.0D - 90.0D 15.0
Input value inMaxDistanceDeviation float 0.0D - 0.1
Input value inMinCellCoverage float 0.0 - 1.0 0.3 Minimum percentage of valid points that a planar cell has to have
Input value inMinPlaneArea int 1 - + 1 Minimum number of pixels for a single plane
Output value outPlaneRegions list[Region]
Output value outPlanes list[Plane3D]
Diagnostic input diagPlanarCells list[Region] Computed planar cells