Jump to content

Recommended Posts

Posted

I often have images like scans which contain distorted lines of objects with known geometry like 

  • straight lines,
  • perpendicular lines,
  • defined angles
  • circles or ellipse shapes

This is relatively easy to correct in case of only one global distortion is relevant.

Unfortunately in most practical cases you have multiple distortions accumulated, e.g.

  • paper which had water damage
  • bad lens distortion
  • double lens distortion (photo taken from photo)

I suggest to add a new distortion remove filter which allows the following process:

  1. you can add multiple alignment helper objects (vector shapes) or grids of those shapes
  2. you can then mark with mouse / pen the corresponding lines (marking pixel positions) in the source image. This should be a curve (vector line), to allow later adjustments
  3. affinity then creates a transform matrix mapping the marked lines to the alignment helper shapes
  • A switch should toggle if the filter effects gets visible or not
  • the interpolation between the given objects should be selectable, e.g. linear, gamma, and nodes like gradient tools.
  • The helper objects should be semi-transparent with automatically contrasting colors (like mouse cursor)
  • you may add a mode where every helper object shows a selectable number of points along its edge, you can then move the corresponding nodes (either source in image or destination in helper, choosable by user) 

The main point is improving the ability to tweak those helper objects for a perfect result. The current mesh warp / perspective / distortion filters are usable mainly to distort straight objects into no longer straight objects, but almost unusable to support the reverse process.

  • One wrong click and all your node fine-tuning is gone, e.g. switching between source and destination mode. 
  • Impossible to tweak both source and destination grid in one edit
  • mesh warp defaults for node handles unsuitable, as it always creates wrong distortions, not allowing to keep lines straight
  • only rectangular grid (no support for other grids or shapes)

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.