1 | initial version |
Try this:
warpPerspective(image1, result,homographyReln, cv::Size(image1.cols+image2.cols, image1.rows));
2 | No.2 Revision |
Try this:this, I think it should sort out your height, width requirements.
warpPerspective(image1, result,homographyReln, resultImage ,homographyReln, cv::Size(image1.cols+image2.cols, image1.rows));