Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perspective transform revisited
#15
So, perhaps I now understand where the problem is. Plugin #2 is designed to correct rectangles, not circles, and it works as follows: You have a distorted rectangle. You make the source path so that its anchors are at the corners of the distorted rectangle. Then you call the plugin.

But if you nevertheless want to use this plugin to correct a distorted circle, you can do as follows, for example. You have to find on the distorted circle 4 points that should be corners of a square after the correction (this is not trivial). You make a path from those 4 points. Then you make a square selection (rectangular with aspect ratio 1:1). Then you call the plugin by choosing


  1. the source path to be that 4-anchor path,
  2. the target rectangle to be the selection.

What the plugin does, is that it transforms the 4 anchors of the path to the corners of the target rectangle (the square). If everything is done right, the distorted circle should be corrected. But the problem here is, how to find those 4 points on the distorted circle that should form a square when corrected. Any choice of 4 points will not do.

Your last picture shows that you did as follows, if I guess right: Choose the 4 points on the distorted circle at: top, right, bottom, left. Then call the plugin. In this case those 4 points indeed form a square when corrected, so the result is ok.

There is no magic here. It would be great if we had a plugin which could be given any distorted circle and it would find the correction automatically. But my plugin is very simple. You have to understand what it does: It transforms the 4 anchors to the corners of the target rectangle.

I shall soon publish another plugin to correct circles, but it will do no magic either. It is just a variation of the same theme.
Reply


Messages In This Thread
Perspective transform revisited - by Ottia Tuota - 10-28-2020, 05:11 PM
RE: Perspective transform revisited - by Krikor - 10-28-2020, 07:04 PM
RE: Perspective transform revisited - by denzjos - 10-29-2020, 05:15 PM
RE: Perspective transform revisited - by Blighty - 11-03-2020, 11:16 AM
RE: Perspective transform revisited - by Krikor - 11-03-2020, 02:12 PM
RE: Perspective transform revisited - by denzjos - 11-05-2020, 04:40 PM
RE: Perspective transform revisited - by Krikor - 11-05-2020, 06:04 PM
RE: Perspective transform revisited - by denzjos - 11-06-2020, 09:10 AM
RE: Perspective transform revisited - by Ottia Tuota - 11-06-2020, 04:45 PM
RE: Perspective transform revisited - by Krikor - 11-10-2020, 09:04 PM
RE: Perspective transform revisited - by Krikor - 11-11-2020, 12:50 PM
RE: Perspective transform revisited - by akovia - 11-16-2020, 06:11 PM
RE: Perspective transform revisited - by Krikor - 12-01-2020, 12:45 PM
RE: Perspective transform revisited - by denzjos - 12-03-2020, 02:17 PM
RE: Perspective transform revisited - by denzjos - 12-03-2020, 05:42 PM
RE: Perspective transform revisited - by denzjos - 12-04-2020, 08:58 AM
RE: Perspective transform revisited - by Krikor - 12-05-2020, 07:06 PM
RE: Perspective transform revisited - by denzjos - 12-06-2020, 12:02 PM

Forum Jump: