|
|
|
@ -56,9 +56,9 @@ MapperGradAffine::~MapperGradAffine(void) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
void MapperGradAffine::calculate( |
|
|
|
|
const cv::Mat& img1, const cv::Mat& image2, cv::Ptr<Map>& res) const |
|
|
|
|
void MapperGradAffine::calculate(InputArray _img1, InputArray image2, cv::Ptr<Map>& res) const |
|
|
|
|
{ |
|
|
|
|
Mat img1 = _img1.getMat(); |
|
|
|
|
Mat gradx, grady, imgDiff; |
|
|
|
|
Mat img2; |
|
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ void MapperGradAffine::calculate( |
|
|
|
|
// We have initial values for the registration: we move img2 to that initial reference
|
|
|
|
|
res->inverseWarp(image2, img2); |
|
|
|
|
} else { |
|
|
|
|
img2 = image2; |
|
|
|
|
img2 = image2.getMat(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Get gradient in all channels
|
|
|
|
|