A defishing script for the Samyang/Falcon/Walimex (and other rebrands) to batch defish all the photos inside a folder. For Windows and Mac with Hugin installed.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
defish-panini.bat
defish-panini.sh
defish-rectilinear.bat
defish-rectilinear.sh

README.md

Samyang Fisheye Defisher

A defishing script for the Samyang/Falcon/Walimex (and other rebrands) to batch defish all the photos inside a folder. For Windows and Mac OS X (thanks to Brian Czapiga), with Hugin installed on it.
These scripts defish the photos using the panini method (straightens only the vertical lines) or the rectilinear method (straightens both vertical and horizontal lines).
The defishing algorithms are extracted from Magic Lantern. So if you use Magic Lantern the defished image you see in your camera is exactly the same image you will get with these scripts.

You can se these scripts in action HERE (thanks to Mars Lander).

What you need

Usage instructions

  • Download and install Hugin
  • Download the scripts
  • Open with the notepad the batch file you want to use (defish-panini.bat/sh or defish-rectilinear.bat/sh) and in the second line after the words "set width=" replace the numbers with the width of your images, and in the third line after the words "set height=" replace the numbers with the height of your images
  • Save the modified batch file and close the notepad
  • Put the batch file in the same directory of your photos and just run it, it wil defish all the images inside the directory