Ask Your Question

Mereth's profile - activity

2018-04-18 06:56:41 -0600 asked a question seam finding in image stitching

seam finding in image stitching I am working with code from OpenCV's stitcher class and i got stuck on understanding how

2018-04-10 06:01:17 -0600 commented answer Stitching images with high resolution

thank you for your help, but i need my stitched result to look differently, just those 2 images combined and final resol

2018-04-10 06:00:47 -0600 commented answer Stitching images with high resolution

thank you for your help, but i need my stitched result to look differently, just those 2 images combined and final resol

2018-04-10 04:06:04 -0600 received badge  Student (source)
2018-04-10 02:57:58 -0600 edited question Stitching images with high resolution

Stitching images with high resolution I'm trying to stitch 2 images with resolution 3000x4000 using Stitcher class and i

2018-04-10 02:56:29 -0600 edited question Stitching images with high resolution

Stitching images with high resolution I'm trying to stitch 2 images with resolution 3000x4000 using Stitcher class and i

2018-04-10 02:55:21 -0600 received badge  Editor (source)
2018-04-10 02:55:21 -0600 edited question Stitching images with high resolution

Stitching images with high resolution I'm trying to stitch 2 images with resolution 3000x4000 using Stitcher class and i

2018-04-10 02:53:52 -0600 asked a question Stitching images with high resolution

Stitching images with high resolution I'm trying to stitch 2 images with resolution 3000x4000 using Stitcher class and i

2018-04-01 04:52:51 -0600 received badge  Enthusiast
2018-03-15 11:17:10 -0600 asked a question What blender is better for image stitching

What blender is better for image stitching I am implementing my own image stitcher(using OpenCV but not the stitcher cla

2018-02-18 14:42:16 -0600 received badge  Supporter (source)
2018-02-18 14:42:13 -0600 marked best answer How to warp image with predefined homography matrix in OpenCV?

I am trying to set predefined values to homography and then use function warpPerspective that will warp my image. First i used findHomography function and displayed result:

H = findHomography(obj, scene, CV_RANSAC);

for( int i=0; i<H.rows; i++){
for( int j=0; j<H.cols; j++){
printf("H: %d %d: %lf\n",i,j,H.at<double>(i,j));
}
}

warpPerspective(image1, result, H, cv::Size(image1.cols + image2.cols, image1.rows));

This works as it is supposed to and i get these values

image description

After that i tried to set values for H and call warpPerspective like this:

H.at<double>(0, 0) = 0.766912;
H.at<double>(0, 1) = 0.053191;
H.at<double>(0, 2) = 637.961151;
H.at<double>(1, 0) = -0.118426;
H.at<double>(1, 1) = 0.965682;
H.at<double>(1, 2) = 3.405685;
H.at<double>(2, 0) = -0.000232;
H.at<double>(2, 1) = 0.000019;
H.at<double>(2, 2) = 1.000000;

warpPerspective(image1, result, H, cv::Size(image1.cols + image2.cols, image1.rows));

And now i get System NullReferenceException, do you have any idea why is this failing?

2018-02-18 14:42:13 -0600 received badge  Scholar (source)
2018-02-18 14:42:11 -0600 commented answer How to warp image with predefined homography matrix in OpenCV?

yes this works thank you, problem was in declaration of H, i just declared it as Mat H and findHomography did not have p

2018-02-18 14:02:19 -0600 asked a question How to warp image with predefined homography matrix in OpenCV?

How to warp image with predefined homography matrix in OpenCV? I am trying to set predefined values to homography and th