Is it possible to create/correct a simple trapezoidal distortion? - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions) +--- Thread: Is it possible to create/correct a simple trapezoidal distortion? (/Thread-Is-it-possible-to-create-correct-a-simple-trapezoidal-distortion) Pages:
1
2
|
Is it possible to create/correct a simple trapezoidal distortion? - Esko - 03-03-2022 Using Gimp 2.10.30 on Windows 10 I have not been able to find a way to contract/expand an image along one axis in a way that would linearly depend on the position along the other axis and do nothing else. The perspective tool apparently does not do the trick, because if I use it to create a trapezoid by contracting the bottom edge of the image horizontally, the content of the image also shifts vertically, and that is not the intention. Perhaps I am missing something basic, but having spent quite some time experimenting with the available tools, I am still at a loss as to how to achieve this fairly simple effect. Any advice would be greatly appreciated. RE: Is it possible to create/correct a simple trapezoidal distortion? - denzjos - 03-03-2022 Maybe you can use the handle transform tool : https://docs.gimp.org/2.10/en/gimp-tool-handle-transform.html RE: Is it possible to create/correct a simple trapezoidal distortion? - programmer_ceds - 03-03-2022 Would the Unified Transform tool not do the job? RE: Is it possible to create/correct a simple trapezoidal distortion? - Esko - 03-03-2022 Thanks for your replies. However, I have already tried those. It seems to me that the Perspective, Unified Transform, and Handle Transform tools all more or less share the same underlying functionality that has been packaged slightly differently. They all behave in a like manner, which does not really apply to this case. If the Shear tool allowed itself to be defined using non-parallel edges and included a one-directional scaling functionality, that would be of help. Unfortunately, that is not the case. RE: Is it possible to create/correct a simple trapezoidal distortion? - rich2005 - 03-03-2022 Depends on the image, in Gimp a possibility is the g'mic plugin and interactive warp. A better bet is not Gimp, Krita has a grid deform that will keep the vertical spacing. example: https://i.imgur.com/VAQZ9M5.jpg RE: Is it possible to create/correct a simple trapezoidal distortion? - Esko - 03-03-2022 Thanks, I will have a look at those. Edit: Yes, indeed. It seems that I will be able to use Krita for what I need. RE: Is it possible to create/correct a simple trapezoidal distortion? - Ofnuts - 03-06-2022 There is my ofn-trapeze-transform script: But as you can see, a problem with this type of transform is that straight lines aren't kept straight. The script is also quite slow. RE: Is it possible to create/correct a simple trapezoidal distortion? - Esko - 03-08-2022 Yes, that is a very nice and clear demonstration. Perhaps I could explain how my need arises. I am manually stitching together a very large scanned document (The game board for the old board game Civilization by Avalon Hill, which I later plan to attach to some plywood for personal use). I am doing the piecewise scanning at 1200 dpi using an Epson Perfection v850 Pro scanner so that I can capture enough detail to perfectly align the individual scans, at least in theory. In addition to some shearing, the scanner systematically introduces a small but clearly observable trapezoidal distortion, which I need to correct, and thus my need. In reality, it is difficult to know for certain whether the distortion is a two-dimensional perspective distortion or a one-dimensional trapezoidal distortion. I guess that both could be possible, or it could be a mix, depending on how the distortion arises in the scanning process. And in the end, after applying Median Blur to even out the original screen printing dots, it may make little practical difference which correction method is used, but it is nice to have both available. Initially at least, I would like to try and correct the distortion just along one dimension with a minimal effect on the image along the other, and see how that works out. Krita seems to be able to natively handle the rather large scan files nicely, while the g'mic plugin also mentioned above is much too slow and unwieldy. A slow script would most likely be equally impractical. At any rate, this project will be lengthy, slow, and fraught with challenges, and may never come to fruition. The ongoing first step is just to get the scan files aligned as well as possible. The more I try to use an excessively perfectionist approach in the beginning, the more confidently I can move on. RE: Is it possible to create/correct a simple trapezoidal distortion? - rich2005 - 03-08-2022 Quote: ...snip...In addition to some shearing, the scanner systematically introduces a small but clearly observable trapezoidal distortion, which I need to correct, and thus my need. Now there is a coincidence This thread https://www.gimp-forum.net/Thread-Compensating-scanner-distortion-looking-for-volunteers-with-a-scanner Ofnuts is the one to ask. RE: Is it possible to create/correct a simple trapezoidal distortion? - PixLab - 03-08-2022 (03-08-2022, 10:40 AM)rich2005 Wrote:Quote: ...snip...In addition to some shearing, the scanner systematically introduces a small but clearly observable trapezoidal distortion, which I need to correct, and thus my need. What a coincidence! When I read Esko's comment about the scanner I thought exactly the same thing @Esko, Ofnuts just put out a new script to fix scans' distortions (link on the rich2005's post above ) |