MCPcopy Create free account
hub / github.com/creatale/node-dv / to_direction

Method to_direction

deps/tesseract/ccstruct/points.cpp:111–113  ·  view source on GitHub ↗

Returns the standard feature direction corresponding to this. See binary_angle_plus_pi below for a description of the direction.

Source from the content-addressed store, hash-verified

109// Returns the standard feature direction corresponding to this.
110// See binary_angle_plus_pi below for a description of the direction.
111uinT8 FCOORD::to_direction() const {
112 return binary_angle_plus_pi(angle());
113}
114// Sets this with a unit vector in the given standard feature direction.
115void FCOORD::from_direction(uinT8 direction) {
116 double radians = angle_from_direction(direction);

Callers 3

NormalizeDirectionFunction · 0.80
ComputeFeaturesFunction · 0.80
ComputeBinaryOffsetsMethod · 0.80

Calls 1

angleFunction · 0.85

Tested by

no test coverage detected