Daniil Masalskiy
Daniil Masalskiy

Reputation: 1

How can I find coordinates of distorted point using Imagemagick?

I am using Imagemagick to distort the full image, but I have some problem with determination of distorted position of the single point from original image.

I am working with Barrel Inverse distortion right now and from Imagemagick documentation I see that distorted position is determined with the following equation:

Barrel Inverse Formula

What I want to achieve: given pair of original image coordinates (Xsrc, Ysrc) and the set of Barrel Inverse distortion coefficients (A, B, C, D) determine pair of coordinates for target image (Xtgt, Ytgt).

From the equation above I can't tell the correct way to implement mapping.

Upvotes: 0

Views: 40

Answers (0)

Related Questions