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

Method DenormTransform

deps/tesseract/ccstruct/normalis.cpp:389–396  ·  view source on GitHub ↗

Transforms the given coords all the way back to source image space using the full transformation sequence defined by this and its predecessors recursively, shallowest first, and finally any block re_rotation. If last_denorm is not NULL, then the last transformation used will be last_denorm, and the block re_rotation will never be executed.

Source from the content-addressed store, hash-verified

387// If last_denorm is not NULL, then the last transformation used will
388// be last_denorm, and the block re_rotation will never be executed.
389void DENORM::DenormTransform(const DENORM* last_denorm, const TPOINT& pt,
390 TPOINT* original) const {
391 FCOORD src_pt(pt.x, pt.y);
392 FCOORD float_result;
393 DenormTransform(last_denorm, src_pt, &float_result);
394 original->x = IntCastRounded(float_result.x());
395 original->y = IntCastRounded(float_result.y());
396}
397void DENORM::DenormTransform(const DENORM* last_denorm, const FCOORD& pt,
398 FCOORD* original) const {
399 LocalDenormTransform(pt, original);

Callers 5

BlobToTrainingSampleFunction · 0.80
DistanceOfBoxFromBoxMethod · 0.80
TransformToPixCoordsMethod · 0.80
chop_overlapping_blobMethod · 0.80
CopyFromNormalizedMethod · 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