This page, we allow users to do camera calibration of single camera, stereo camera and rectification on calibrated camera.
Camera calibration extracts intrinsic and extrinsic parameters of cameras such as focus length. Using the extracted parameters, we can apply some transformation to correct the image such as lens distortion effects and align images.
Please choose an action:
(*) Before going to calibration page, remember that you need to accquire a few images of the following calibration pattern.
If ever username/password is asked, you can use temp/512 for a quick access.
The overall goal of this research is to create a number of applications related to Stereo Vision techniques.
Generally, such applications require inputs as images captured by stereo camera, which produces left and right image respectively.
In this research, I will use images produced by Fujifilm W1 camera [footnote],
Minoru 3D webcam [footnote], Ueye cameras [footnote], and possibly Nintendo 3DS [footnote].
It must start with camera calibration and rectification, which is unavoidable process to align captured image horizontally. Camera calibration is implemented
with openCV [footnote] using Zhang’s method [ref] to reconstruct the fundamental matrix [ref]
for rectification of stereo camera. Only when images are correctly rectified, stereo matching algorithms can reconstruct good 3D information from the depicted left
and right mages. In this research, we will use Dynamic Programming (SDPS) [ref], Belief Propagation [ref], or Graph Cut [ref] for stereo matching.
The following will describe in more detail of how we build the camera calibration and rectification.
Camera calibration process helps finding quantities of internal and external conditions that affect the image processing. Those are position of image centre, focal length,
scaling facters, skew factor and lense distortion. This is a necessary step to recontruct the world model from the captured images, this makes the interaction with the world possible.
Amongth them, lense distortion are created mainly by inexpensive single lenses system, forming distortion to image at its periphery [ref].
The below picture shows an example of camera distortion appeared on the left image and the correction of that after camera rectification showing on the right picture.
Basically, after camera calibration process, paralelled lines in the real world remain paralelled in the camera image.
An example of raw image with lens distortion and its correction [ref], making paralleled lines in real world paralleled in the image.
Stereo Camera Rectification
Image rectification is a transformation process used to project two-or-more images onto a common image plane. It requires that image distortion is corrected (by the above camera calibration) and then transforms the image into a standard coordinate system. It is widely used in Stereo Matching process to simplify the problem of finding matching points between images [ref].
In real life, setting up a stereo pair of camera is trivial but the following two problems have to be faced:
impracticality or impossibility of perfectly aligning cameras
perfectly aligned cameras may become misaligned over time
The diagram on the right hand side demonstrate the process. Stereo vision uses triangulation based on epipolar geometry to determine distance to an object. Between two cameras there is a problem of finding a corresponding point viewed by one camera in the image of the other camera (known as the correspondence problem). In most camera configurations, finding correspondences requires a search in two-dimensions. However, if the two cameras are aligned to be coplanar, the search is simplified to one dimension - a horizontal line parallel to the baseline between the cameras. Furthermore, if the location of a point in the left image is known, it can be searched for in the right image by searching left of this location along the line, and vice versa (see binocular disparity). Image rectification is an equivalent (and more often used [1]) alternative to perfect camera alignment. Image rectification is usually performed regardless of camera precision due to
The search space before (1) and after (2) rectification [ref]
The process
There are a number of steps to be carried out by the users as stated: