Undistort_Image
Author: |
Peter Stierlen (peter.stierlen@t-online.de) |
History: |
2008/09/30
(v1.01): first version 2008/11/01
(v1.02): fixed data type import bug for distortion factor k1 |
Source: |
|
Installation: |
Download
Undistort_Image.java
to the plugins folder and compile it. You need the intrinsic camera
parameters of your cam system. |
Description: |
This plugin allows you to undistort images taken with your cam using intrinsic camera parameters calculated with the zhang calibration tool. You can find more details about the Zhang calibration method at http://research.microsoft.com/%7Ezhang/Calib/ This plugin version will only work with an image size of 640 x 480 pix. |
Optical lense systems have more or less imperfections
which lead to optical distortions. This distortions must be taken into account
if one wants to use images for measuring. There are several methods available
to calculate the optical distortions and finally undistort the images. The
developed plugin will use the intrinsic camera parameters calculated with the
Zhang calibration tool EasyCalib.exe integrated in the
ImageJ plugin Optic_Calib .
Open
your original distort image or stack stack
Start
the plugin Undistort_Image
You will then be asked to select the valid intrinsic
parameter file Params.txt for your camera system. The plugin Optic_Calib
generally use Params.txt as name for
the parameter file. But each parameter file is stored in the same folder as the
original calibration images.
Selection
of parameter file params.txt
The intrinsic parameters will be showed in a new
dialog box. If necessary you can make additional modifications.
Imported
intrinsic parameters
By clicking the OK button the undistortion will be
started with the showed parameters.
Undistort
image
If you want to compare both
stacks
Process > Image Calculator …
Calculating
Stack differences
Differences between original optical distort
stack and zhang calibrated stack
You are visitor counter