Method |
Description |
void setCalibrated( bool calibrated )
|
Makes the maximum distance interpreted in world units (true) or in voxel units (false). |
bool isCalibrated()
|
Returns true if the maximum distance is expressed in world units, false it is in voxel units. |
void setMaxDistance( float distance )
|
Sets the maximum distance from the object boundaries to consider potential neighbors. |
float maxDistance()
|
Returns the maximum distance from the object boundaries to consider potential neighbors. |
void setMinOverlap( float overlap )
|
Sets the minimum particle volume percentage included in the spherical neighborhood to select a potential
neighbor.
|
float minOverlap()
|
Returns the minimum particle volume percentage included in the spherical neighborhood to select a potential
neighbor.
|
NeighborCount::Ptr neighborCount = MeasurementAttributes::neighborCount();
neighborCount->setCalibrated( true );
bool isCalibrated = neighborCount->isCalibrated();
neighborCount->setMaxDistance( 200 );
float maxDistanceValue = neighborCount->maxDistance();
neighborCount->setMinOverlap( 5 );
float minDistanceValue = neighborCount->minOverlap();
Attributes |
Description |
calibrated
|
Returns or sets to true if the maximum distance is expressed in world units, false it is in voxel units.
|
max_distance
|
Returns or sets the maximum distance from the object boundaries to consider potential neighbors.
|
min_overlap
|
Returns or sets the minimum particle volume percentage included in the spherical neighborhood to select a
potential neighbor.
|
neighbor_count = imagedev.MeasurementAttributes.neighbor_count
neighbor_count.calibrated = True
is_calibrated = neighbor_count.calibrated
neighbor_count.max_distance = 9.0
max_distance_value = neighbor_count.max_distance
neighbor_count.min_overlap = 90.0
min_distance_value = neighbor_count.min_overlap
Attributes |
Description |
calibrated
|
Makes the maximum distance interpreted in world units (true) or in voxel units (false).
True if the maximum distance is expressed in world units, false it is in voxel units.
|
maxDistance
|
Gets or sets the maximum distance from the object boundaries to consider potential neighbors. |
minOverlap
|
Gets or sets the minimum particle volume percentage included in the spherical neighborhood to select a potential
neighbor.
|
NeighborCount neighborCount = MeasurementAttributes.neighborCount();
neighborCount.calibrated = true;
autot isCalibrated = neighborCount.calibrated;
neighborCount.maxDistance = 200;
auto maxDistanceValue = neighborCount.maxDistance;
neighborCount.minOverlap = 5;
auto minDistanceValue = neighborCount.minOverlap();