Coder Social home page Coder Social logo

defish-1's Introduction

Defish

"Defish" - barrel and pincushion distortion correction filter defish (v1.1) MT for Avisynth 2.5 (c) David Horman, 2010 Multithreaded version (c) 2011 Andrey "Efenstor" Pivovarov

This filter can be used to correct (or induce) barrel and pincushion distortion.

Links

USAGE

The filter takes the following parameters (in addition to the input clip):

  • [unnamed] Input clip. Must be RGB32 and have even width/height.

  • fov useful range: -180.0 - 180.0 default: 0 The horizontal field of view, in degrees. Positive values will correct barrel distortion (induce pincushioning). Negative values should correct pincushion distortion (induce barreling), but note that this may currently be implemented incorrectly.

  • scale range: 0.0 - infinity default: 1.0 An adjustment parameter which scales the image after correction.

  • aspect range: 0.0 - infinity default: 1.0 The pixel aspect ratio of the input clip.

  • direction values: "x", "y" This parameter restricts the correction to either horizontal or vertical only.

  • scaling values: "fitx", "fity", "fitxy" This parameter automatically scales the image to fill the image horizontally, vertically, or both. The "scale" parameter above is still effective.

    The default behaviour when using fov is to scale the image such that the central area stays at the original scale.

    This parameter is not effective when using the polynomial values below.

  • a,b,c sensible range: 0.0 - 1.0 Parameters for correcting distortion polynomially. These are only effective when fov=0 (which is the default value).

      a+b+c must be less than or equal to 1.0 when pin=true.
    
  • pin boolean Set this to true to correct pincushion distortion, and false to correct barrel distortion - this may seem the wrong way around but it was chosen to match the behaviour of the similar parameter of V.C. Mohan's DeBarrel filter.

  • threads range: 0 - infinity 0 (default) sets the number of processing threads to the number of autodetected CPU's/cores.

defish-1's People

Contributors

thechaoscoder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.