| 15 | public: |
| 16 | virtual ~MatrixScaleTest() = default; |
| 17 | virtual bool run(int precision) { |
| 18 | Matrix m; |
| 19 | m.setRectToRect(Rect{20, 21, 40, 41}, Rect{0, 0, 100, 100}, Matrix::kCenter_ScaleToFit); |
| 20 | Point p; |
| 21 | m.invert(&m); |
| 22 | m.mapXY(50, 50, &p); |
| 23 | |
| 24 | MNNTEST_ASSERT(p.fX == 30); |
| 25 | MNNTEST_ASSERT(p.fY == 31); |
| 26 | return true; |
| 27 | } |
| 28 | }; |
| 29 | MNNTestSuiteRegister(MatrixScaleTest, "cv/matrix/scale"); |
nothing calls this directly
no test coverage detected