Ask Your Question
1

Doubt about implementation of mosaic using SURF

asked 2015-02-02 09:58:45 -0500

Diego Moreira gravatar image

Hi everyone,

I am with a doubt about mosaic when i using SURF Transformer. I need apply SURF for make a mosaic, but, there is a problem. When i apply warp perspective, i need to know discover a new height of my image.

How to know a new height of my image, after of application of warp perspective ?

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-03 14:30:41 -0500

Potato gravatar image

updated 2015-02-03 14:32:06 -0500

Try this, I think it should sort out your height, width requirements.

warpPerspective(image1, resultImage ,homographyReln, cv::Size(image1.cols+image2.cols, image1.rows));
edit flag offensive delete link more

Comments

Hi,

Thank you for answer my doubt. But, my problem is complicated...

I have this line in my code, but i want a new height of my image after a application of warp. I want to learn a new height and width after a application of warpperspective in my image. This is my problem.

Thank you.

Diego Moreira gravatar imageDiego Moreira ( 2015-02-04 12:04:31 -0500 )edit

I had the same problem. I resolved calculating countour of the homography and then sorround it with bounding rectangle, which has width and height properties!

bjorn89 gravatar imagebjorn89 ( 2015-04-14 04:43:37 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-02-02 09:58:45 -0500

Seen: 88 times

Last updated: Feb 03 '15