RiPROCESS UserGuide Handling of Camera Data 2011-03-09
RiPROCESS UserGuide Handling of Camera Data 2011-03-09
CONTENT
Content ................................................................................................................................................... 2
BASIC INFORMATION
The camera model used is based on a Cartesian coordinate system (CaMera Coordinate System,
CMCS). The origin is coincident with that of an equivalent pinhole camera. The x-axis of the right-
handed coordinate system is aligned from left to right in the images, whereas the y-axis is aligned
from top to bottom. Thus, the z-axis corresponds to the direction of camera’s view.
The internal camera calibration describes the ideal pinhole camera represented by the focal length
and the equivalent center of the pinhole projected orthogonally onto the chip surface (= Image
focal point). The x and y axes use separate focal lengths fx and fy which are normalized by the
respective pixel width dx and dy, so that, for example, fx [pixel] = fx [m] /dx [m]. The center of
the image in relation to the CMCS is defined by the parameters Cx and Cy, given in pixel units.
For lenses with negligible distortion, usually Cx ~ Nx/2 and Cy ~ Ny/2, whereas Nx and Ny are
the number of pixel horizontal and vertical direction.
The lens distortion is modeled by at least two radial and two tangential coefficients: k1, k2, k3, k4
and p1, p2 respectively. In case the radial coefficients of higher order equal 0, the camera model
is identical to the one described in OpenCV (http://opencvlibrary.sourceforge.net/).
Note: If the images are acquired using RiACQUIRE this step can be skipped (RiACQUIRE
automatically creates a camera device)
Note: If the images are acquired using RiACQUIRE this step can be skipped (RiACQUIRE
automatically creates a camera device)
Nx / Ny … number of pixels in x / y
direction
fx / fy … focal length [pixel] in x / y
direction (fx = f [m] / dx [m]; fy = f [m]
/ dy [m])
Rotation Matrix
Camera Coordinate Sys. → IMU Coordinate
Sys.
Translation
Camera Coordinate Sys. → IMU Coordinate
Sys.
Note: Use ‘right click’ for importing / exporting the mounting matrix.
Note: If the images are acquired using RiACQUIRE this step can be skipped (RiACQUIRE
automatically creates a camera device)
The image list is a standard text (ASCII) file with the extension *.EIF.
Each image is stored in a separate line. Content of one line of the *EIF file:
time-stamp˽file-name
Example:
12345.6789000 my_beautiful_picture_no1.jpg
23456.7890000 my_beautiful_picture_no2.jpg
...
Note: Supported file formats are: bmp, gif, jpg, png, tiff
Hint: If you do not use RiACQUIRE for image acquisition, refer to the manual of your image
acquisition software to get information about exporting ASCII-files.
Note: If the images are acquired using RiACQUIRE this step can be skipped (RiACQUIRE
automatically creates an EIF file which is read by RiPROCESS when the project is loaded for
the first time)
Define Trajectory
Note: If during the import a file cannot be found a dialog will appear assisting you defining the
right file path of the image.
• open ‘camera data’ of a record (right click > open or double click) (can also be done for
multiple selected camera data at once, which will show all images in a combined view)
• open a view and add laser data to the view
• choose ‘arrange windows vertically’
• if you now move the mouse in the laser data the mouse cursor in the camera data should
also move (at the according part of the image)
• Hit ‘Next’
• Open a view and add laser data (of the same record as the camera data)
• define your ‘Laser data view (3D)’ by clicking in the ‘view’ window
• Hit ‘Next’
• define at least 4 corresponding points in the laser data (view window) and in the camera
data;
o make sure that the points are spread over the entire image
o For MLS make in addition sure that the points cover the maximum possible spread
in target depth
o to define a point use ‘ALT + click’
• after the definition of each corresponding point-set hit ‘+’ in the ‘Mounting’ window
• Hit ‘Next’
• check the statistics of you camera calibration (in the mounting window), if you want to
change anything hit ‘Back’
• once you are satisfied with the camera calibration close all windows (camera data and view
windows) the new calibration is applied immediately
Note: This step is only available for images captured using the RIEGL VMX-250-CS6.
Note: For best results please use ‘White balance wizard’ in RiACQUIRE.
• open ‘camera data’ of the white balance record (right click > open or double click)
• start the white balance tool (clicking the ‘white balance’ icon)
• move the selection (blue rectangle) to the part of the image which shows a shade of grey
(gray card, asphalt, …) and change the size of the selection
• copy the selection to the other images of the gain set
• select calculation mode (‘white balance with gray card’ / ‘white balance w/o grey card’)
o white balance with gray card: adoption of the brightness of an image set (captured
with different gain settings) plus color adjustment (equal of RGB-channels)
o white balance w/o grey card: adoption of the brightness of an image set (captured
with different gain settings)
• click ‘calculate white balance’ to start the white balance calculation for each image (gain
setting) in which a selection was made
COLOR CALIBRATION
The first option helps to do a color calibration of all images captured by ‘Camera#’. Using this tool
it is possible to adapt the image color to a certain user defined value. All the other image colors
are adapted accordingly.
The second option can be used to adapt the colors of several cameras. This tool can be used to
adopt the image color in a way that the same real world object has the same color in all images
(captured by the different Camera Devices). Again all the other image colors are adapted
respectively.
• To start ‘color calibration’ right click ‘CAMERA DEVICES’ > ‘Color Adjustment’
• Add Camera Data to the ‘Color Adjustment’ window using drag&drop
• To start ‘color calibration’ right click ‘CAMERA DEVICES’ > ‘Color Adjustment’
• Add all Camera Data to be adjusted to the ‘Color Adjustment’ window using drag&drop
• Select one of the images in the ‘Reference color’ drop down menu
• Click ‘Make a selection’ and select the “region of interest” in each image
• Hit ‘Calculate’
• A results window will be appear
• ‘Accept’ or ‘discard’ the calculated values
• To export image data right click the concerning ‘camera data’ and choose ‘Export’