Forum: Digital Processing, Software, and Printing
11-05-2017, 08:50 AM
|
|
Hi Mack,
There are a huge range of operators for distortion on the command line using convert utility
The one you might need is -distort barrel "A, B, C" where the 3 coeffs are for 3rd, 2nd and 1st order radial distortions
If the radial coeffs are not avialble for your lens , you can find the coeffs by trials ( usually 3rd order is the main one)
Here are some examples of crazy overcorrections
original img: (XR Rikenon 1:3.5 28mm uncorrected https://app.box.com/s/ievjf7xtl8y5ik7uglpjiwthdnqidd36
positive 3rd order radial overcorrection:
ZZ@localhost Barrel_Example]$ convert IMGP0206.JPG -distort Barrel "+0.5 +0.5 -0.5" My_barreledCrazy1.JPG https://app.box.com/s/dk2wvaqsrx2j2bknsfh3tpa8w98swgis
negative 2rd order radial overcorrection:
ZZ@localhost Barrel_Example]$ convert IMGP0206.JPG -distort Barrel "-0.0 -0.5 -0.5" My_barreledCrazy2.JPG https://app.box.com/s/91ghuz6hmg6mvnqtwsuanx9qnwp9fmfz |