how to take points InputArray objectPoints, InputArray imagePoints could you please explain in detail with an example
solvePnP¶ Finds an object pose from 3D-2D point correspondences.
C++: bool solvePnP(InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess=false, int flags=ITERATIVE )
Example here or here
tutorial here
outputarray doc
Whats unclear?
InputArray
andOutputArray
are just proxy arguments. You can pass for objectPoints and imagePoints eitherstd::vector<cv::Point>
or acv::Mat
. Even acv::UMat
would be OK.InputArray
is never changed inside the function, whereasOutputArray
is normally created and filled inside the function. There are also some other proxys such asInputArrayOfArrays
orOutputArrayOfArrays
which can handlestd::vector<std::vector<cv::Point>>
orstd::vector<Mat>
for example.i need to pass in vector give some example for this
i need to know how the points are taken InputArray objectPoints, InputArray imagePoints,
Show us your code