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

Method NormTransform

deps/tesseract/ccstruct/normalis.cpp:334–341  ·  view source on GitHub ↗

Transforms the given coords forward to normalized space using the full transformation sequence defined by the block rotation, the predecessors, deepest first, and finally this. If first_norm is not NULL, then the first and deepest transformation used is first_norm, ending with this, and the block rotation will not be applied.

Source from the content-addressed store, hash-verified

332// then the first and deepest transformation used is first_norm, ending
333// with this, and the block rotation will not be applied.
334void DENORM::NormTransform(const DENORM* first_norm, const TPOINT& pt,
335 TPOINT* transformed) const {
336 FCOORD src_pt(pt.x, pt.y);
337 FCOORD float_result;
338 NormTransform(first_norm, src_pt, &float_result);
339 transformed->x = IntCastRounded(float_result.x());
340 transformed->y = IntCastRounded(float_result.y());
341}
342void DENORM::NormTransform(const DENORM* first_norm, const FCOORD& pt,
343 FCOORD* transformed) const {
344 FCOORD src_pt(pt);

Callers 6

NormalizeDirectionFunction · 0.80
GatherPointsFunction · 0.80
ExtractFeaturesFromRunFunction · 0.80
SetupNormTruthWordMethod · 0.80
plot_normedMethod · 0.80
CollectEdgesOfRunFunction · 0.80

Calls 5

IntCastRoundedFunction · 0.85
re_rotationMethod · 0.80
xMethod · 0.45
yMethod · 0.45
rotateMethod · 0.45

Tested by

no test coverage detected