Suppose I have a transformation matrix Mat
tr
that I got from getAffineTransform()
and a Point2d
p
. I want the point that is the result of warping p
with tr
. Does OpenCV provide a way of doing this?
相关问题
- Sorting 3 numbers without branching [closed]
- How to get the background from multiple images by
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
相关文章
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
- What is the correct way to declare and use a FILE
cv::transform
is used for transforming points with a transformation matrix.There's a concise example in the
InputArray
documentation (otherwise not relevant):Or you can likely just convert the
Point2f
into aMat
and multiply by the matrix.