unwarp

Unwarp curved surface

纵饮孤独 提交于 2019-12-25 07:08:41
问题 I have a cylindrical object on which a circular label is pasted. I extract the contour of the image. I know the radius of the cylindrical object as well as the label. But not every time the ellipse obtained will be exactly symmetrical. How can I unwrap the ellipse into a circle? Here's an image which is not symmetrical EDITED I tried to extend @Haris's solution something like this Instead of just just 4 points, I want to use an array of points to get a more accurate circle. But

How to map a point onto a warped grid

此生再无相见时 提交于 2019-11-30 07:27:18
问题 Say you have a collection of points with coordinates on a Cartesian coordinate system. You want to plot another point, and you know its coordinates in the same Cartesian coordinate system. However, the plot you're drawing on is distorted from the original. Imagine taking the original plane, printing it on a rubber sheet, and stretching it in some places and pinching it in others, in an asymmetrical way (no overlapping or anything complex). (source) You know the stretched and unstretched

How to map a point onto a warped grid

不羁岁月 提交于 2019-11-29 03:56:05
Say you have a collection of points with coordinates on a Cartesian coordinate system. You want to plot another point, and you know its coordinates in the same Cartesian coordinate system. However, the plot you're drawing on is distorted from the original. Imagine taking the original plane, printing it on a rubber sheet, and stretching it in some places and pinching it in others, in an asymmetrical way (no overlapping or anything complex). ( source ) You know the stretched and unstretched coordinates of each of your set of points, but not the underlying stretch function. You know the