Ask Your Question

Revision history [back]

warpPerspective() to a different origin

I need to apply a perspective transformation to a pixel that is not the origin of the warped image. The warpPerspective() method is applying : warpPerspective I need to apply the following centered perspective transformation : centered How can I use OpenCV to perform such a perspective transform in C++ ? Thanks for helping.

warpPerspective() to a different origin

I need to apply a perspective transformation to a pixel that is not the origin of the warped image. The warpPerspective() method is applying : warpPerspective

But I need to apply the following centered perspective transformation : centered

The perspective transformation that I need to apply is the following ... tranformation Here it is applied to the center of the squared image (cx,cy)=(0.5,0.5). But if I warp the image from (cx,cy)=(0,0), there's a translation error, like in the following example ... error

The perspective transformation (here it is a rotation) must be applied to the center of the warped image. How can I use OpenCV to perform such a centered perspective transform in C++ ? Thanks for helping.

Best regards,

Dr. F. Le Coat CNRS / Paris / France

warpPerspective() to a different origin

I need to apply a perspective transformation to a pixel that is not the origin of the warped image. The warpPerspective() method is applying : warpPerspective

But I need to apply the following centered perspective transformation : centered

The perspective transformation that I need to apply is the following ... tranformation Here it is applied to the center of the squared image (cx,cy)=(0.5,0.5). But if I warp the image from (cx,cy)=(0,0), there's a translation error, like in the following example ... error

The perspective transformation (here it is a rotation) must be applied to the center of the warped image. How can I use OpenCV to perform such a centered perspective transform in C++ ? Thanks for helping.

Best regards,

Dr. F. Le Coat CNRS / Paris / France

https://hebergement.universite-paris-saclay.fr/lecoat

warpPerspective() to a different origin

I need to apply a perspective transformation to a pixel that is not the origin of the warped image. The warpPerspective() method is applying : warpPerspective

But I need to apply the following centered perspective transformation : centered

The perspective transformation that I need to apply is the following ... tranformation Here it is applied to the center of the squared image (cx,cy)=(0.5,0.5). But if I warp the image from (cx,cy)=(0,0), there's a translation error, like in the following example ... error

The perspective transformation (here it is a rotation) must be applied to the center of the warped image. How can I use OpenCV to perform such a centered perspective transform in C++ ? Thanks for helping.

Best regards,

Dr. F. Le Coat CNRS / Paris / France

https://hebergement.universite-paris-saclay.fr/lecoat