Feret2d
This attribute manages two-dimensional measurements belonging to the Feret category of native measurements.
The two-dimensional measurements of the
Feret category are customizable
with the following methods.
See related example
Syntax
Method |
Description |
void setOrientationCount( uint64_t number )
|
Sets the number of Feret angles and updates the angle distribution. |
uint64_t orientationCount() const
|
Returns the number of Feret angles. |
void setOrientation( uint64_t index, float angle ) |
Sets a new angle in degrees, between 0 and 360, at the index position of the Feret distribution. |
float orientation( uint64_t index ) |
Returns the angle value in degrees at the index position in the distribution. |
void resample() |
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half circle.
|
Method |
Description |
set_orientation(self, index, angle) |
Sets a new angle in degrees, between 0 and 360, at the index position of the Feret distribution. |
orientation(self, index) |
Returns the angle value in degrees at the index position in the distribution. |
resample(self) |
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half circle.
|
Attributes |
Description |
orientation_count
|
Returns the number of Feret angles or sets it and updates the angle distribution. |
Method |
Description |
void SetOrientation(long index, float angle) |
Sets a new angle in degrees, between 0 and 360, at the index position of the Feret distribution. |
float Orientation(long index) |
Returns the angle value in degrees at the index position in the distribution. |
void Resample() |
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half circle.
|
Attributes |
Description |
orientationCount
|
Sets or gets the number of Feret angles and updates the angle distribution. |