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
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. |