Welcome Guest (Log in)

Bilinear Perspective Distortion 1.4.1

StarStarStarStarStar
Image (14) | LC 9 (10) | LC 6+7+8 (8) | Distortion (4) | Perspective (4) | LC -Magick (3) | Antialiasing (2)
General
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Hermann Hoch
  • StarStarStarStarStar
  • Stack
  • 2
  • 468 Times
  • 01 February 2017
Bilinear Perspective Image Distortion v1.4.1
By Hermann Hoch and Bernd Niggemann
--------------------------------------------------------
-- Distortion part by Hermann (hh)
-- Antialiasing part by Bernd (bn)
-- Use freely, but mention true authors.
-- v1.4.0 ... first "sample stack" .............. 2017-02-01
-- v1.4.1 ... avoid linux ink-bug ............... 2017-02-01

Bilinear Perspective Image Distortion = LC-Magick #6

This is the LiveCode implementation of the well known bilinear distortion technique.
For each new 'distortion' the algorithm solves 8 linear equations and looks up the pixel data at the corresponding cartesian coords of the source image. The 'core' code is only at about 110 lines. Based on the description here: http://www.imagemagick.org/Usage/distorts/

* Drag the handles of the 'distortion-generating' polygon.
* Use the 'helper' buttons for flipping the image or mirroring the polygon
* Inflate or deflate the 'distortion-generating' polygon ('zoom').
* Antialias or and/or frame the distorted result.
* Copy the result or save it to a file.
* Use a text field for input, to generate distorted 'banners'.
* Use the images menu for testing with some examples.
* Import your own images into the example images menu.

The stack contains short help.

[-hh et bn fecerunt, Nov 2016 - Feb 2017]

For much more stacks see the collection here (for Raspi/Mac/Win/Linux):
http://forums.livecode.com/viewtopic.php?f=76&t=19248

Ajax Loader
Tags
Expander triangle
User Comments
Expander triangle