FindHomography

cvcuda.findhomography(srcPts: nvcv.Tensor, dstPts: nvcv.Tensor, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor

Estimates the homography matrix between srcPts and dstPts coordinates on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Find Homography operator for more details and usage examples.

Parameters:
  • srcPts (nvcv.Tensor) – Input source coordinates tensor containing 2D coordinates in the source image.

  • dstPts (nvcv.Tensor) – Input destination coordinates tensor containing 2D coordinates in the target image.

  • stream (Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The model homography matrix tensor.

Return type:

nvcv.Tensor

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.findhomography(srcPts: nvcv.TensorBatch, dstPts: nvcv.TensorBatch, stream: Optional[nvcv.cuda.Stream] = None) -> TensorBatch

Executes the Find Homography operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Find Homography operator for more details and usage examples.

Parameters:
  • srcPts (nvcv.TensorBatch) – Input source coordinates tensor containing 2D coordinates in the source image.

  • dstPts (nvcv.TensorBatch) – Input destination coordinates tensor containing 2D coordinates in the target image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The model homography matrix tensor batch.

Return type:

nvcv.TensorBatch

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.findhomography_into(models: nvcv.Tensor, srcPts: nvcv.Tensor, dstPts: nvcv.Tensor, stream: nvcv.cuda.Stream | None = None)

Executes the Find Homography operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Find Homography operator for more details and usage examples.

Parameters:
  • models (nvcv.Tensor) – Output model tensor containing 3x3 homography matrices.

  • srcPts (nvcv.Tensor) – Input source coordinates tensor containing 2D coordinates in the source image.

  • dstPts (nvcv.Tensor) – Input destination coordinates tensor containing 2D coordinates in the target image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The model homography matrix tensor.

Return type:

nvcv.Tensor

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.findhomography(models: nvcv.TensorBatch, srcPts: nvcv.TensorBatch, dstPts: nvcv.TensorBatch, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Find Homography operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Find Homography operator for more details and usage examples.

Parameters:
  • models (nvcv.TensorBatch) – Output model tensor containing 3x3 homography matrices.

  • srcPts (nvcv.TensorBatch) – Input source coordinates tensor containing 2D coordinates in the source image.

  • dstPts (nvcv.TensorBatch) – Input destination coordinates tensor containing 2D coordinates in the target image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The model homography matrix tensor batch.

Return type:

nvcv.TensorBatch

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.