Welcome Guest (Log in)

Perspective Image Distortion 1.3.1

StarStarStarStarStar
Imagedata (10) | Image (9) | LC 6+7+8 (8) | LC 9 (7) | Raspberry Pi (5) | Distortion (4) | Transformation (4) | LC -Magick (3) | Perspective (3)
General
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Hermann Hoch
  • StarStarStarStarStar
  • Stack
  • 4
  • 796 Times
  • 12 March 2017
Perspective image distortion (interactive)
## v1.3.1 2017-03-12 ... improved speed by 20%
## v1.3.0 2017-03-11 ... more layout scripts
## v1.1.0 2017-01-10 ... antialiasing (bn) and 'fine-tuning'
## v1.0.0 2016-11-20 ... first public version

Perspective Distortion = LC-Magick #4

This is a LiveCode implementation of the (quadrilateral) technique used also by imageMagick (thanks to Anthony Thyssen). For each new 'distortion' the algorithm has to build and solve a system of 8 linear equations for 8 parameters. These are then used to 'reverse lookup' for each target pixel appropriate pixels in the source image. This technique ensures that there are no 'missing' pixels in the target distortion.

There is detailed help in the stack.
Thanks to Bernd Niggemann (bn) for his brilliant border-smoothing-technique.

Using LC 6 is more than two times faster than using LC 7/8/9. The algorithm is fast enough for RaspberryPi 2/3 using LC 6.5.1.
The needed speed is mainly dependent on the size of the distortion (which has to be build), the size of the input image has only a small impact here.

[-hh fecit, Nov 2016 - Mar 2017]
Ajax Loader
Tags
Expander triangle
User Comments
Expander triangle