Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUDA equivalent of estimateRigidTransform in OpenCV 3

I'm working on a video stabilisation project using OpenCV, and I've got a CPU implementation working but the performance needs improvement so I'm trying to move most of the processing to the GPU.

The current implementation primarily uses these four OpenCV functions:

  • cv::goodFeaturesToTrack
  • cv::calcOpticalFlowPyrLK
  • cv::estimateRigidTransform
  • cv::warpAffine

So far I've found the following equivalents on the GPU:

  • cv::cuda::createGoodFeaturesToTrackDetector
  • cv::cuda::SparsePyrLKOpticalFlow
  • cv::cuda::warpAffine

Is there a CUDA equivalent of estimateRigidTransform?

like image 953
Alex L Avatar asked Oct 22 '25 03:10

Alex L


1 Answers

OpenCV doesn't have implementation for estimateRigidTransform on CUDA. There is opencv based project on github, which has functions for computing homographies and estimating rigid transforms: https://github.com/danielsuo/cuSIFT

Here is function you need: https://github.com/danielsuo/cuSIFT/blob/master/extras/rigidTransform.cu

like image 120
taarraas Avatar answered Oct 24 '25 20:10

taarraas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!