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

Method PositionFromIndex

deps/tesseract/classify/intfeaturespace.cpp:62–66  ·  view source on GitHub ↗

Returns an INT_FEATURE_STRUCT corresponding to the given index. This is the inverse of the Index member.

Source from the content-addressed store, hash-verified

60// Returns an INT_FEATURE_STRUCT corresponding to the given index.
61// This is the inverse of the Index member.
62INT_FEATURE_STRUCT IntFeatureSpace::PositionFromIndex(int index) const {
63 return PositionFromBuckets(index / (y_buckets_ * theta_buckets_),
64 index / theta_buckets_ % y_buckets_,
65 index % theta_buckets_);
66}
67
68// Bulk calls to Index. Maps the given array of features to a vector of
69// inT32 indices in the same order as the input.

Callers 2

InverseIndexFeatureMethod · 0.80
InverseMapFeatureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected