MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / ExportOpFindHomography

Function ExportOpFindHomography

python/mod_cvcuda/operators/OpFindHomography.cpp:228–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226} // namespace
227
228void ExportOpFindHomography(py::module &m)
229{
230 using namespace pybind11::literals;
231
232 py::options options;
233 options.disable_function_signatures();
234
235 m.def("findhomography", &FindHomography, "srcPts"_a, "dstPts"_a, "stream"_a = nullptr, R"pbdoc(
236
237 cvcuda.findhomography(srcPts: cvcuda.Tensor, dstPts: cvcuda.Tensor, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
238
239 Estimates the homography matrix between srcPts and dstPts coordinates on the given cuda stream.
240
241 See also:
242 Refer to the CV-CUDA C API reference for the Find Homography operator
243 for more details and usage examples.
244
245 Args:
246 srcPts (cvcuda.Tensor): Input source coordinates tensor containing 2D coordinates in the source image.
247 dstPts (cvcuda.Tensor): Input destination coordinates tensor containing 2D coordinates in the target image.
248 stream (Stream, optional): CUDA Stream on which to perform the operation.
249
250 Returns:
251 cvcuda.Tensor: The model homography matrix tensor.
252
253 Caution:
254 Restrictions to several arguments may apply. Check the C
255 API references of the CV-CUDA operator.
256 )pbdoc");
257
258 m.def("findhomography_into", &FindHomographyInto, "models"_a, "srcPts"_a, "dstPts"_a, "stream"_a = nullptr, R"pbdoc(
259
260 cvcuda.findhomography_into(models: cvcuda.Tensor, srcPts: cvcuda.Tensor, dstPts: cvcuda.Tensor, stream: Optional[cvcuda.Stream] = None)
261
262 Executes the Find Homography operation on the given cuda stream.
263
264 See also:
265 Refer to the CV-CUDA C API reference for the Find Homography operator
266 for more details and usage examples.
267
268 Args:
269 models (cvcuda.Tensor): Output model tensor containing 3x3 homography matrices.
270 srcPts (cvcuda.Tensor): Input source coordinates tensor containing 2D coordinates in the source image.
271 dstPts (cvcuda.Tensor): Input destination coordinates tensor containing 2D coordinates in the target image.
272 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
273
274 Returns:
275 cvcuda.Tensor: The model homography matrix tensor.
276
277 Caution:
278 Restrictions to several arguments may apply. Check the C
279 API references of the CV-CUDA operator.
280 )pbdoc");
281
282 m.def("findhomography", &VarShapeFindHomography, "srcPts"_a, "dstPts"_a, "stream"_a = nullptr, R"pbdoc(
283
284 cvcuda.findhomography(srcPts: cvcuda.TensorBatch, dstPts: cvcuda.TensorBatch, stream: Optional[cvcuda.Stream] = None) -> TensorBatch
285

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected