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

Function FeatureDirection

deps/tesseract/classify/intfx.cpp:70–72  ·  view source on GitHub ↗

Returns a vector representing the direction of a feature with the given theta direction in an INT_FEATURE_STRUCT.

Source from the content-addressed store, hash-verified

68// Returns a vector representing the direction of a feature with the given
69// theta direction in an INT_FEATURE_STRUCT.
70FCOORD FeatureDirection(uinT8 theta) {
71 return FCOORD(cos_table[theta], sin_table[theta]);
72}
73
74namespace tesseract {
75

Callers 2

InitMethod · 0.85
ComputeOffsetFeatureMethod · 0.85

Calls 1

FCOORDClass · 0.70

Tested by

no test coverage detected