oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Global Transforms

Functions

Region oevislib_net.Region.FillHoles (int inMinHoleArea=1, Optional< int > inMaxHoleArea=null, RegionConnectivity inConnectivity=RegionConnectivity.EightDirections)
 Computes a new region, starting from the original and filling the holes with area in the requested range.
Region oevislib_net.Region.RemoveBorders (int inMarginX=0, int inMarginY=0)
 Computes a new region starting from the calling object and removing the requested margin from the outer borders.
Region oevislib_net.Region.RemoveBlobs (RegionFeature inFeature=RegionFeature.Area, float inMinimum=1.0f, Optional< float > inMaximum=null, RegionConnectivity inConnectivity=RegionConnectivity.EightDirections, bool inRemoveBoundaryBlobs=false)
 Computes a new region starting from the calling object and removing the blobs with the requested features.
Region oevislib_net.Region.RemoveBlobsOnRegionFrame (Region inBorderRegion, RegionConnectivity inConnectivity)
 Removes the blobs of the calling object that are touching the frame of the provided region.
Array< Regionoevislib_net.Region.SplitIntoBlobs (int inMinBlobArea=1, Optional< int > inMaxBlobArea=null, RegionConnectivity inConnectivity=RegionConnectivity.EightDirections, bool inRemoveBoundaryBlobs=false)
 Returns all the blobs that match the input parameters.
Array< Regionoevislib_net.Region.SplitIntoClusters (int inClusters, int inMaxIterations=100, int inAttempts=1, KMeansInitialization inClustersInitialization=KMeansInitialization.KMeansPP, int inMinBlobArea=1, Optional< int > inMaxBlobArea=null, bool inRemoveBoundaryBlobs=false)
 Splits the region into clusters.
Array< Regionoevislib_net.Region.SplitIntoClusters (int inMinPoints, float inEpsilon, bool inIgnoreOutliers=true, int inMinBlobArea=1, Optional< int > inMaxBlobArea=null, bool inRemoveBoundaryBlobs=false)
 Splits the region into clusters.

Detailed Description

Function Documentation

◆ FillHoles()

Region oevislib_net.Region.FillHoles ( int inMinHoleArea = 1,
Optional< int > inMaxHoleArea = null,
RegionConnectivity inConnectivity = RegionConnectivity::EightDirections )
inline

Computes a new region, starting from the original and filling the holes with area in the requested range.

Parameters
inMinHoleAreaHoles with an area lower than this value will be neglected. Range: [0, +inf).
inMaxHoleAreaHoles with an area bigger than this value will be neglected. If negative, the parameter is not considered. Range: [0, +inf).
inConnectivityType of connectivity used by the algorithm.
Returns
The computed region.

◆ RemoveBlobs()

Region oevislib_net.Region.RemoveBlobs ( RegionFeature inFeature = RegionFeature::Area,
float inMinimum = 1::0f,
Optional< float > inMaximum = null,
RegionConnectivity inConnectivity = RegionConnectivity::EightDirections,
bool inRemoveBoundaryBlobs = false )
inline

Computes a new region starting from the calling object and removing the blobs with the requested features.

Parameters
inFeatureFeature type used to filter blobs.
inMinimumBlobs with a feature value lower than this will be neglected. Range [0, +inf).
inMaximumBlobs with a feature value higher than this will be neglected. If Null, the parameter is neglected. Range [0, +inf).
inConnectivityType of connectivity used by the algorithm.
inRemoveBoundaryBlobsIf true, blobs that are touching the region frame will be removed, independently of their feature value.
Returns
The computed region.

◆ RemoveBlobsOnRegionFrame()

Region oevislib_net.Region.RemoveBlobsOnRegionFrame ( Region inBorderRegion,
RegionConnectivity inConnectivity )
inline

Removes the blobs of the calling object that are touching the frame of the provided region.

Parameters
inBorderRegionRegion whose frame is used to determine if the blobs must be deleted.
inConnectivityType of connectivity used by the algorithm.
Returns
The computed region.

◆ RemoveBorders()

Region oevislib_net.Region.RemoveBorders ( int inMarginX = 0,
int inMarginY = 0 )
inline

Computes a new region starting from the calling object and removing the requested margin from the outer borders.

Parameters
inMarginXMargin from the horizontal borders. Range [0, +inf).
inMarginYMargin from the vertical borders. Range [0, +inf).
Returns
The computed region.

◆ SplitIntoBlobs()

Array< Region > oevislib_net.Region.SplitIntoBlobs ( int inMinBlobArea = 1,
Optional< int > inMaxBlobArea = null,
RegionConnectivity inConnectivity = RegionConnectivity::EightDirections,
bool inRemoveBoundaryBlobs = false )
inline

Returns all the blobs that match the input parameters.

Parameters
inMinBlobAreaBlobs with an area lower than this value will be neglected. Range: [0, +inf).
inMaxBlobAreaBlobs with an area higher than this value will be neglected. If Null, the parameter is neglected. Range: [0, +inf).
inConnectivityType of connectivity used by the algorithm.
inRemoveBoundaryBlobsIf true, blobs that are touching the region's frame are neglected, regardless of their area value.
Returns
An array containing all the found blobs.

◆ SplitIntoClusters() [1/2]

Array< Region > oevislib_net.Region.SplitIntoClusters ( int inClusters,
int inMaxIterations = 100,
int inAttempts = 1,
KMeansInitialization inClustersInitialization = KMeansInitialization::KMeansPP,
int inMinBlobArea = 1,
Optional< int > inMaxBlobArea = null,
bool inRemoveBoundaryBlobs = false )
inline

Splits the region into clusters.

Parameters
inClustersNumber of clusters in which to split the region. Range: [2, +inf).
inMaxIterationsMaximum number of iterations. Range: [1, +inf).
inAttemptsNumber of times the algorithm is executed using different initial labels. The algorithm returns at the end the labels that yield the best compactness. Range: [1, +inf).
inClustersInitializationMethod used to initialize clusters' centroids.
inMinBlobAreaBlobs with an area lower than this value will be neglected. Range: [0, +inf).
inMaxBlobAreaBlobs with an area higher than this value will be neglected. If Null, the parameter is neglected. Range: [0, +inf).
inRemoveBoundaryBlobsIf true, blobs that are touching the region's frame are neglected, regardless of their area value.
Returns
An array containing all the found blobs.

◆ SplitIntoClusters() [2/2]

Array< Region > oevislib_net.Region.SplitIntoClusters ( int inMinPoints,
float inEpsilon,
bool inIgnoreOutliers = true,
int inMinBlobArea = 1,
Optional< int > inMaxBlobArea = null,
bool inRemoveBoundaryBlobs = false )
inline

Splits the region into clusters.

Parameters
inMinPointsMinimum number of neighbors to create a cluster from a point. Range: [1, +inf).
inEpsilonMaximum distance between two points to be considered neighbors. Range: (0, +inf).
inIgnoreOutliersIf true, no errors are thrown if outliers are found.
inMinBlobAreaBlobs with an area lower than this value will be neglected. Range: [0, +inf).
inMaxBlobAreaBlobs with an area higher than this value will be neglected. If Null, the parameter is neglected. Range: [0, +inf).
inRemoveBoundaryBlobsIf true, blobs that are touching the region's frame are neglected, regardless of their area value.
Returns
An array containing all the found blobs.