Sign in to follow this  
Followers 0
toe_head2001

Quadrilateral Correction v1.1 (Jan 1, 2017)

15 posts in this topic

Quadrilateral Correction

Effects -> Distort-> Quadrilateral Correction

 

Description

This effect is useful for correcting images that have been skewed on multiple axes.

It uses an algorithm from AForge.NET. It works very well, but don't expect miracles if your image is extremely skewed.

 

Before & After

The left face has been selected in the plugin.

before.png — > after.png

 

Screenshot

Spoiler

ui.png

 

Output:

gn.png

 

Control Nubs

The control nubs can be manipulated with the mouse in the following three ways:

- Left Mouse Button — Grab and Drag

- Middle Mouse Button — Grab and Drag with a Dead Zone

- Right Mouse Button — Select nub for Keyboard Arrow manipulation

   - Arrow — 1px

   - Ctrl + Arrow — 5px

 

 

Change Log

v1.1 (Jan 1, 2017)

  • Fixed: Now works properly on HiDPI

v1.0 (Aug 24, 2016)

  • Initial release

 

Download

:RightArrowBlue:  QuadrilateralCorrection.zip

Place all three files in the Effects folder

 

Donate

PP_logo_h_100x26.png

 

Source Code

https://github.com/toehead2001/pdn-quadrilateral-correction

 

 

Icon based on icons from Fugue Icons.

9

Share this post


Link to post
Share on other sites
17 hours ago, flaner said:

does not show online
It prevents the plugin window

I'm not sure what you're trying to say. Something is preventing the plugin's window from showing? Please provide specific details.

0

Share this post


Link to post
Share on other sites

I finally had a chance to download and try this plugin, and it's very interesting and useful. (I wish the initial comment had a bit more detail on how it's used and perhaps a image of the UI.)

 

0

Share this post


Link to post
Share on other sites

Thanks toe_head2001,

 

This effect is great for correcting skewed images such as photos of documents, posters, etc.

 

perspective-correction-503babd.png

0

Share this post


Link to post
Share on other sites

Is moving the canvas to one side so hard? Even on your low resolution, you'll see most of your image.
 

Spoiler

canvasMoved.jpg

 

Side rant: It really bothers that manufactures are still selling low resolution displays to consumers. The sad part is many of those consumers don't know any better. A vertical resolution of 768? Honestly, that's what we used in the late 90's (1024x768).

I went 1920x1200 in 2004, and never went back (sort of... all my displays these days are slightly lower: 1920x1080.  16:9 killed 16:10).

0

Share this post


Link to post
Share on other sites

Thank you, toe_head!  This will come in handy!  :D

0

Share this post


Link to post
Share on other sites

For those interested, I've uploaded the source code to GitHub (see first post). Sorry for the delay, I've been without my Windows computer for more than a week.

0

Share this post


Link to post
Share on other sites

Version 1.1 post.

Fixes the GUI on HiDPI.

4

Share this post


Link to post
Share on other sites

toe_head2001, in the source code, I can't find the implementation of the QuadrilateralTransformation class.

0

Share this post


Link to post
Share on other sites
14 minutes ago, MJW said:

toe_head2001, in the source code, I can't find the implementation of the QuadrilateralTransformation class.

I just created the GUI, so the QuadrilateralTransformation class is in the AForge.NET libraries.

https://github.com/andrewkirillov/AForge.NET/blob/master/Sources/Imaging/Filters/Transform/QuadrilateralTransformation.cs

1

Share this post


Link to post
Share on other sites

Thanks, toe_head2001!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0