MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / TransformShapeInPlace

Function TransformShapeInPlace

jni/stasm/misc.cpp:438–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436// The term "in place" means that we modify the shape passed to this func.
437
438void TransformShapeInPlace(
439 Shape& shape, // io
440 const MAT& alignment_mat) // in
441{
442 CV_Assert(shape.cols == 2);
443 CV_Assert(alignment_mat.cols == 3 || alignment_mat.rows == 2);
444
445 for (int i = 0; i < shape.rows; i++)
446 if (PointUsed(shape, i))
447 {
448 VEC row(shape.row(i));
449 Mat33TimesVec(row, alignment_mat);
450 // if transformed point happens to be at 0,0, jitter it
451 if (!PointUsed(shape, i))
452 shape(i, IX) = XJITTER;
453 }
454}
455
456void TransformShapeInPlace(
457 Shape& shape, // io

Callers 5

ImgDetParToRoiFrameFunction · 0.85
ImgShapeToRoiFrameFunction · 0.85
RoiShapeToImgFrameFunction · 0.85
RotShapeInPlaceFunction · 0.85
TransformShapeFunction · 0.85

Calls 2

PointUsedFunction · 0.85
Mat33TimesVecFunction · 0.85

Tested by

no test coverage detected