FredsImageMagickScripts.Unperspective 1.0.6551.11423

Attempts to automatically remove pespective distortion from an image without the need to manually pick control points. This technique is limited and relies upon the ability to isolate the outline or boundary of the distorted quadrilateral in the input image from its surrounding background. This technique will not look for internal edges or other details to assess the distortion. This technique also works to correct affine distortions such as rotation and/or skew. The basic principal is to isolate the quadrilateral of the distorted region from its background to form a binary mask. The mask is converted from cartesian coordinates to polar coordinates and averaged down to one row. This row is then processed either to find the highest peaks or the highest second derivative peaks. The four peaks identified are then converted back to cartesian coordinates and used with the ouput dimensions determined from the user specified (or computed) aspect ratio and user specified dimension.

Requires NuGet 2.5 or higher.

Install-Package FredsImageMagickScripts.Unperspective -Version 1.0.6551.11423
dotnet add package FredsImageMagickScripts.Unperspective --version 1.0.6551.11423
<PackageReference Include="FredsImageMagickScripts.Unperspective" Version="1.0.6551.11423" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FredsImageMagickScripts.Unperspective --version 1.0.6551.11423
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.6551.11423 415 12/8/2017
1.0.6436.32248 302 8/26/2017
1.0.6361.37081 328 6/1/2017
1.0.6256.40977 351 2/16/2017
1.0.5966.38598 378 5/2/2016