#1381·gocv

Add calib3d bindings for `findEssentialMat` and `recoverPose`

Author: johanmontorfanoCreated Oct 1, 2026Updated Oct 1, 2026

Feature Description

Currently, GoCV's calib3d package lacks bindings for OpenCV's findEssentialMat and recoverPose family of functions. These functions are essential for multi-view geometry, Structure from Motion (SfM), and visual odometry pipelines to estimate the essential matrix and recover relative camera rotation ($R$) and translation ($t$).

Proposed Changes

Add wrappers for:

  • cv::findEssentialMat:
    • FindEssentialMatrixFocalLength / FindEssentialMatrixFocalLengthWithParams
    • FindEssentialMatrixCameraMat / FindEssentialMatrixCameraMatWithParams
    • FindEssentialMatrixDifferentCameras / FindEssentialMatrixDifferentCamerasWithParams
  • cv::recoverPose:
    • RecoverPoseFocalLength / RecoverPoseFocalLengthWithParams
    • RecoverPoseCameraMat / RecoverPoseCameraMatWithParams
    • RecoverPoseDifferentCameras / RecoverPoseDifferentCamerasWithParams

I have implemented these functions along with the corresponding smoke tests in calib3d_test.go.