Next Article in Journal
Boosting a Low-Cost Smart Home Environment with Usage and Access Control Rules
Previous Article in Journal
Strain Sensitivity Control of an In-Series Silica and Polymer FBG
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved Cross-Ratio Invariant-Based Intrinsic Calibration of A Hyperspectral Line-Scan Camera

Australian Centre for Filed Robotics (ACFR), The University of Sydney, Sydney, NSW 2006, Australia
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(6), 1885; https://doi.org/10.3390/s18061885
Submission received: 23 April 2018 / Revised: 1 June 2018 / Accepted: 5 June 2018 / Published: 8 June 2018
(This article belongs to the Section Physical Sensors)

Abstract

:
Hyperspectral line-scan cameras are increasingly being deployed on mobile platforms operating in unstructured environments. To generate geometrically accurate hyperspectral composites, the intrinsic parameters of these cameras must be resolved. This article describes a method for determining the intrinsic parameters of a hyperspectral line-scan camera. The proposed method is based on a cross-ratio invariant calibration routine and is able to estimate the focal length, principal point, and radial distortion parameters in a hyperspectral line-scan camera. Compared to previous methods that use similar calibration targets, our approach extends the camera model to include radial distortion. It is able to utilize calibration data recorded from multiple camera view angles by optimizing the re-projection error of all calibration data jointly. The proposed method also includes an additional signal processing step that automatically detects calibration points in hyperspectral imagery of the calibration target. These contributions result in accurate estimates of the intrinsic parameters with minimal supervision. The proposed method is validated through comprehensive simulation and demonstrated on real hyperspectral line-scans.

1. Introduction

Hyperspectral line-scan cameras have been widely used by agricultural robots, e.g., the Ladybird robot as shown in Figure 1, for various applications such as fruit detection [1], weed detection [2,3,4], nutrient status estimation [5], pest surveillance [6], discolouration detection [7], damage detection [8], and yield estimation [9]. Hyperspectral line-scan cameras provide both high spatial and spectral resolution and high sample rate images.
Producing hyperspectral images of a scene is a three-dimensional problem. A hyperspectral image provides much more resolution along the spectral dimension compared to panchromatic sensors [10]. Like conventional imaging systems, two dimensions are required to record spatial information. The third dimension is used to record layers of spectral information. Optical systems work by gathering light through a series of lenses and projecting the light onto a two dimensional imaging plane. Capturing the extra dimension of spectral information raises a design challenge. Various technologies have been developed to manage the trade-off between spatial and spectral resolution. Area-scan and line-scan cameras represent different approaches to manage this trade-off. More details about various hyperspectral sensors can be found in [11].
In area-scan cameras, the system iterates through a bank of filters capturing an image for each filter. Each image has two spatial dimensions and represents the reflectance at a particular wavelength. These systems require the scene to remain static as images are captured at each wavelength. They also require complex mechanisms to manage the filter changes. Given that these systems capture two-dimensional data in layers, conventional calibration procedures can be applied to the data. A versatile two-step calibration method is proposed by Tsai to calibrate an area-scan camera by a planar or 3D metric calibration target [12]. A flexible calibration method for an area-scan camera using a printed planar metric calibration target is proposed by Zhang in [13]. Given the ease of use and accuracy of Zhang’s method, it has become a popular method for calibrating desktop vision systems.
In line-scan cameras, one dimension of the imaging plane is dedicated to resolving spatial information and the other is dedicated to resolving spectral information. This is achieved by projecting light from the scene through a slit. This narrow band of light, representing one spatial dimension, is passed through a diffraction grating before being cast onto the imaging plane. These systems are a robust choice for field operations as they are purely optical systems. Whilst this technology can capture line-scans with a high spectral and spatial resolution, the single-spatial dimension data is not immediately recognisable or easy to analyse. In order to generate hyperspectral data products with two spatial dimensions, many line-scan images must be stitched together.
Originally, line scan cameras have been applied only on more controlled and strict conditions like laboratories and satellites [14]. Recently, robotic platforms (e.g., the Ladybird in Figure 1) have been developed and required calibration. Calibration techniques designed to work on area-scan images do not immediately translate to line-scan images. Since only one spatial dimension is recorded in line-scan cameras, the contrast of features within the scene only appears in one direction of the captured image. This makes it difficult to determine the location of feature points on a 2-D calibration target. In turn, estimating the location of the imaging-plane relative to the calibration target becomes difficult to obtain [15].
The rest of the paper is organised as follows. A review of related work is provided in Section 2. The proposed calibration method is described in Section 3. Results from validating the method both in simulation and on real data are presented in Section 4. The performance of the method is discussed in Section 5. Finally, Section 6 presents the conclusions and future work.

2. Related Work

Compared to area-scan cameras, relatively few methods for calibrating the intrinsic parameters of line-scan cameras exist. Despite the challenges encountered during calibration, there are several works which propose solutions to this problem.
Horaud et al. [16] proposed a method for calibrating the parameters of a line-scan camera using the line image of a purposefully designed 2D calibration target. The target consists of four co-planar straight lines with three of them parallel and the fourth intercepting the other three with an arbitrary angle. To observe a sufficient number of feature points on the calibration target, a linear stage is used to move the calibration target in two orthogonal directions. The linear stage movements are executed using known increments to control the homography between views. The location of the feature points, in the calibration target frame, are estimated using the cross-ratio. The cross-ratio is constructed by taking the ratio between the product of pair-wise distances of four collinear points. This ratio has the useful property that it is invariant under any projective transform [17].
Luna et al. in [18] extends [16] by utilizing two identical calibration targets. The target consists of two parallel planes, each of which has vertical lines and slanted lines interconnected in a zig-zag configuration. The two targets are parallel with a known offset so that the target is repeated at two different elevations. Since there are sufficient independent feature points, calibration can be done using only one image of the calibration target. This method requires a quasi-coplanarity setup between the sensor and the calibration target.
Li et al. [19] further improved the concept. In their method, the calibration target comprises two orthogonal planes. Similar to [18], two groups of parallel feature lines are drawn on each plane. Using this calibration target, the constraint of a quasi-coplanarity setup between the sensor and the calibration target is removed. As in [19], a single image of the calibration target is sufficient for calibration.
Although these methods are able to calibrate the intrinsic parameters of a line-scan camera model, they all hold the assumption that the lens distortion is small enough to be ignored, or constant within each repeated parallel line. Yao et al. [15] relaxed this assumption and presented a method for calibrating a line-scan camera including the radial distortion of the camera lens. A planar target consisting of repeated vertical and slanted lines is used. A virtual 2D calibration framework is constructed from the 1D image data. Feature point reconstruction is used to transform the 1D camera calibration problem into a 2-D space. In this space, it is possible to use a 2D camera model, with constraints unique to 1D geometry. To estimate the model parameters, two or more views of the calibration target are required.
Methods for calibrating a line-scan camera using a typical chessboard target have also been proposed [20,21]. In these methods, a linear stage is used to scan the calibration target and generate a 2D image. This allows conventional calibration techniques to be applied to the 2D image such as detecting the corner of the chessboard squares. While these methods can provide high precision, they require the scanning rate of the camera to be synchronized with the speed of the stage. Behmann et al. [22] proposed a camera model with a non-linear part that is able to deal with a varying scanning speed during the measurement and also deal with nonlinear distortion. In close range photogrammetry, the equipment required to setup linear stages for calibration are not affordable or convenient to deploy for many low-cost line-scan camera applications [19]. Methods for calibrating a line-scan camera with the help of an auxiliary camera are presented in [23,24].
In this paper, we present an improved cross-ratio invariant-based intrinsic calibration method that is designed to estimate the intrinsic parameters of a hyperspectral line-scan camera including the principal point, focal length, and radial distortion of the lens. This is done by taking multiple images of the calibration target presented in [19] at arbitrary angles. Joint optimization is used to find optimal values for the intrinsic parameters using all images. Compared to previous methods using similar calibration targets, our method is able to estimate radial distortion from multiple view angles without requiring external hardware such as linear stages.

3. Calibration Method

This section presents our method for calibrating the intrinsic parameters of a hyperspectral line-scan camera. Section 3.1 and Section 3.2 lay the foundations of the calibration method by introducing the line-scan camera model and details of the calibration target, respectively. The steps of the proposed calibration method are summarised in Figure 2. In the first step, described in Section 3.3, signal processing is used to gather calibration feature points for determining the camera intrinsic parameters. Next, as described in Section 3.4, the calibration feature points are used in the DLS to estimate the camera extrinsic and intrinsic parameters excluding radial distortion. In the next step, described in Section 3.5, nonlinear optimization is used to optimize all camera intrinsic parameters including radial distortion using all calibration data from each camera view angle. Finally, as described in Section 3.6, a joint nonlinear optimization step is performed to optimize intrinsic parameters using all calibration data from all camera view angles.

3.1. The Camera Model for a Line-Scan Camera

In the proposed method, the classic pin hole camera model is employed to represent the relationship between a point in the world frame and its correspondence in the camera image. Using a pin hole camera model without considering lens distortion, the 3D projection model of a 2D frame camera is formulated as follows [15]:
s u v 1 = M R t X Y Z 1
where X Y Z T are the coordinates of a 3D point in the world frame, u v T is the corresponding pixel coordinates in image, s is an arbitrary scale factor, R t is the extrinsic matrix, and M is the intrinsic matrix of the camera. In the camera extrinsic matrix, R is the rotation matrix and t is the translation matrix specifying the relative pose between the world coordinates frame and the camera coordinates frame.
The intrinsic matrix M is defined by
M = f x c u 0 0 f y v 0 0 0 1
where f x and f y are horizontal and vertical focal lengths in pixels, c is the skewness of the axes in the image frame, and u 0 and v 0 are the coordinates of the principal point on the image.
Projection of a line-scan camera can be treated as a special case of frame camera projection. For the 1D line-scan camera, one can assume that the camera optical center locates on the line-scan camera’s sensor array, i.e., u 0 = 0 , and the skewness of the axes has no effect, i.e., c = 0 [15]. Therefore, Equations (1) and (2) for a line-scan camera can be simplified to
s 0 v 1 = f x 0 0 0 f y v 0 0 0 1 R t X Y Z 1 .
Let r i j be the ith row and the jth column of the rotation matrix R , and let t i be the ith element of the translation matrix t . Equation (3) can be further simplified as
0 = f x r 11 X + r 12 Y + r 13 Z + t 1 r 31 X + r 32 Y + r 33 Z + t 3 v = f y r 21 X + r 22 Y + r 23 Z + t 2 r 31 X + r 32 Y + r 33 Z + t 3 + v 0 .
When the distortion of camera lens is taken into account, we consider the first-order radial distortion coefficient. Since the image captured by a line-scan camera only contains one spatial dimension, the tangential distortion of the lens does not affect the image [15]. Although the radial distortion can spread over more than 20 orders of magnitude, it is dominated by the first order [12,25]. As a result, we can add the effect of the first-order radial distortion of the lens to Equation (4) and obtain the following formulation:
0 = f x r 11 X + r 12 Y + r 13 Z + t 1 r 31 X + r 32 Y + r 33 Z + t 3 v = f y r 21 X + r 22 Y + r 23 Z + t 2 r 31 X + r 32 Y + r 33 Z + t 3 1 + k 1 r 21 X + r 22 Y + r 23 Z + t 2 r 31 X + r 32 Y + r 33 Z + t 3 2 + v 0
where k 1 is the first-order radial distortion coefficient. In Equation (5), the first equation is not affected by the radial distortion, as there is only one pixel along this direction. We use Equation (4) for the DLS and Equation (5) for the nonlinear optimization, as detailed in later sections (Section 3.4, Section 3.5 and Section 3.6).

3.2. Calibration Target

We adopt the same calibration target as designed by Li et al. in [19]. The benefit of such a target over other calibration targets reported in the literature is that it is easy to manufacture in a small workshop. Only one image of the calibration target is required to estimate the camera’s extrinsic and intrinsic parameters, excluding the radial distortion coefficient, using the DLS described in Section 3.4.
The calibration target is shown in Figure 3. As can be seen from the figure, the target consists of two orthogonal planes. Each plane is painted with 10 black triangles. The width w p and height h p of the triangles are known, allowing equations for the vertical and diagonal lines in the target to be modelled prior to imaging. The line-scan camera’s view plane (denoted in green) intersects with the black triangles on the points P i ( i = 1 , , 40 ) . The projected points P i ( i = 1 , , 40 ) in the line-scan camera image frame are denoted as y i ( i = 1 , , 40 ) .
In a practical calibration process, one can only obtain the camera observation y i ( i = 1 , , 40 ) . However, when neglecting the effect of lens distortion, 3D points coordinates of P i ( i = 1 , , 40 ) can be inferred using the cross-ratio invariance property [19].
To obtain the coordinates at P 2 , let us firstly define the cross ratio of the points P 1 , P 2 , P 3 , P 5 as η P 1 , P 2 , P 3 , P 5 such that
η P 1 , P 2 , P 3 , P 5 = P 1 P 3 P 2 P 3 : P 1 P 5 P 2 P 5 = P 1 P 2 + P 2 P 3 P 2 P 3 : P 1 P 2 + P 2 P 3 + P 3 P 4 + P 4 P 5 P 2 P 3 + P 3 P 4 + P 4 P 5 .
Due to the parallelism of the vertical lines on the target, the following relationship holds:
P 3 P 4 + P 4 P 5 = P 1 P 2 + P 2 P 3 .
Therefore, Equation (6) can be simplified as
η P 1 , P 2 , P 3 , P 5 = P 1 P 2 + P 2 P 3 P 2 P 3 : 2 ( P 1 P 2 + P 2 P 3 ) P 1 P 2 + 2 P 2 P 3 .
From the projective invariance property of the cross ratio, we can also express η P 1 , P 2 , P 3 , P 5 as [19]:
η P 1 , P 2 , P 3 , P 5 = y 3 y 1 y 3 y 2 : y 5 y 1 y 5 y 2 .
Therefore, using Equations (8) and (9),
P 2 P 3 P 1 P 3 = ( y 3 y 2 ) ( y 5 y 1 ) 2 ( y 3 y 1 ) ( y 5 y 2 ) ( y 3 y 2 ) ( y 5 y 1 ) .
Finally, using parallelism again, the coordinates of P 2 in the target coordinate frame can be derived as
X 2 = w p P 2 P 3 P 1 P 3 Y 2 = h p 9 + P 2 P 3 P 1 P 3 Z 2 = 0
where P 2 P 3 P 1 P 3 is obtained from Equation (10).
Similarly, the coordinates of points P i ( i = 4 , 6 , , 16 ) and P i ( i = 22 , 24 , , 36 ) can be obtained as follows [19]:
X i = w p P i P i + 1 P i 1 P i + 1 Y i = h p 20 i 2 + P i P i + 1 P i 1 P i + 1 Z i = 0 , i = 2 , 4 , , 16
X i = w p P i P i + 1 P i 1 P i + 1 Y i = 0 Z i = h p i 20 2 P i P i + 1 P i 1 P i + 1 , i = 22 , 24 , , 36
where
P i P i + 1 P i 1 P i + 1 = ( y i + 1 y i ) ( y i + 3 y i 1 ) 2 ( y i + 1 y i 1 ) ( y i + 3 y i ) ( y i + 1 y i ) ( y i + 3 y i 1 ) , i = 2 , 4 , , 16 ; 22 , 24 , , 36 .
Ideally, P i ( i = 2 , 4 , , 16 ; 22 , 24 , , 36 ) should be perfectly aligned on the view plane. However, due to observation noise on y i ( i = 2 , 4 , 16 ; 22 , 24 , , 36 ) , P i ( i = 2 , 4 , 16 ; 22 , 24 , , 36 ) are recorded with minor offsets from the view plane. The equation of view plane can be defined in the coordinates of target frame as A X + B Y + C Z + D = 0 . The coefficients A,B,C, and D can be refined by solving the following homogeneous linear equations using singular value decomposition [19]:
X i Y i Z i 1 X N Y N Z N 1 A B C D = 0 .
After solving Equation (15) to estimate the equation of the view plane, the location of the points P i ( i = 1 , , 40 ) can be estimated by solving for the intersection between the 3D plane and lines. This is given by the following equations:
X i = B Y i + D A Y i = h p 21 i 2 Z i = 0 , i = 1 , 3 , , 19
X i = B 20 i 2 h p + D A + B h p w p Y i = A X i + D B Z i = 0 , i = 2 , 4 , , 20
X i = C Z i + D A Y i = 0 Z i = h p ( i 21 ) 2 , i = 21 , 23 , , 39
X i = C i 20 2 h p + D A C h p w p Y i = 0 Z i = A X i + D C , i = 22 , 24 , , 40 .
More details about the derivation of the above equations can be found in [19].

3.3. Signal Processing

Before calibration, described in later sections, the observations y i ( i = 1 , , 40 ) of points P i ( i = 1 , , 40 ) must be extracted from the raw hyperspectral imagery.
A hyperspectral line-scan image of the calibration target is shown in Figure 4. As can be seen from the figure, the camera provides a 2D image with one axis representing the spatial dimension, and the other representing the spectral dimension. To calibrate the camera, all vertical edges in the image must be located. These edges correspond to the projected intersection points y i ( i = 1 , , 40 ) where the black and white pigment meet along the view plane of the target i.e. P i ( i = 1 , , 40 ) . Here, we assume that the consequences of smiling and keystone effects on the vertical edge detection is negligible.
Let I ( i , j ) be the image from the hyperspectral line-scan camera, where indexes i and j represent indexes along spectral and spatial dimensions, respectively. Pixels close to the top and bottom of the spectral dimension are not considered, as the signal has attenuated to below the noise floor. Specifically, pixels correspond to wavelength less than 420nm or larger than 950nm are ignored. For each line along the spatial dimension, the gradient is calculated with respect to adjacent pixels and summed to calculate a gradient score value g ( i , j ) where
g ( i , j ) = I ( i , j ) I ( i , j 1 ) + I ( i , j ) I ( i , j + 1 ) .
The gradient score, g ( i , j ) , is summed along the spectral dimension to obtain the spatial gradient score value G ( j ) ,
G ( j ) = i = J l J u g ( i , j )
where J l and J u denote the lower and upper indexes of the reliable region of the image, respectively.
In order to find y i ( i = 1 , , 40 ) with subpixel accuracy, G ( j ) are up-sampled along the spatial dimension and fitted using cubic spline interpolation [26] as shown in Figure 5. As shown in the figure, there are 42 distinctive peaks representing the 40 points that constitute y i ( i = 1 , , 40 ) . The two extra points represent the edge of the calibration target. Therefore, we extract the 42 highest peaks and exclude the first and last peaks along the spatial dimension. The obtained peaks are scaled back to the original pixel coordinate scale to obtain y i ( i = 1 , , 40 ) .

3.4. Direct Linear Solution

When neglecting the lens distortion of the line-scan camera, extrinsic and intrinsic camera parameters can be obtained using the DLS on one image of the calibration target [19].
Using the DLS, the extrinsic and intrinsic parameters in Equation (4) can be formulated as follows:
r 11 = D A D A 2 + B 2 + C 2 r 12 = D B D A 2 + B 2 + C 2 r 13 = D C D A 2 + B 2 + C 2 t 1 = D 2 D A 2 + B 2 + C 2
r 21 = s ( l 4 r 13 l 5 r 12 ) r 11 r 22 = s l 5 r 23 = s l 4
r 31 r 32 r 33 = r 11 r 12 r 13 × r 21 r 22 r 23
where
s = ± 1 l 5 2 + l 4 2 + l 4 r 13 l 5 r 12 r 11 2 .
l i ( i = 1 , , 6 ) can be obtained by solving the following homogeneous linear equations using singular value decomposition:
Y 1 Z 1 1 y 1 Y 1 y 1 Z 1 y 1 Y N Z N 1 y N Y N y N Z N y N l 1 l 2 l 3 l 4 l 5 l 6 = 0 .
Finally, parameters f y , v 0 , t 2 , and t 3 can be obtained by solving the following equations:
f y r 33 v 0 r 23 = s l 1 f y r 32 + v 0 r 22 = s l 2 f y r 11 t 2 f y r 21 t 1 + v 0 r 11 t 3 v 0 r 31 t 1 = s l 3 r 11 t 3 r 31 t 1 = s l 6 .
Equation (25) has two solutions for s. The incorrect solution for s can be discarded by checking the sign of t 3 . Since the calibration target is guaranteed to be in front of the line-scan camera and t 3 represents the Z axis value of the camera in the target coordinate frame, we can enforce t 3 > 0 . By ensuring t 3 > 0 , we can obtain the correct, unique solution. More details on the derivation of the DLS can be found in [19].

3.5. Nonlinear Optimization for Each Camera Pose

The results of the DLS has several drawbacks. Firstly, the estimated coordinates of intersection points P i are not the true intersection points of the camera view plane and the patterns on the target. Secondly, the camera observations y i and the camera model do not satisfy the optimal least squares measure [19].
With the DLS extrinsic and intrinsic camera parameters obtained in Section 3.4, the parameters can be updated and refined to include radial distortion of the camera lens using nonlinear optimization. All calibration data from one camera pose is used in this nonlinear optimization step.
In the nonlinear optimization, the following sum of re-projection errors are minimized:
e = δ = 1 Δ i = 1 40 [ ( x ^ i ( R , T , f x , k 1 ) 0 ) 2 + ( y ^ i ( R , T , f y , k 1 ) y i , δ ) 2 ]
where x ^ i ( R , T , f x , k 1 ) and y ^ i ( R , T , f y , k 1 ) are the expected camera observations of intersection points P i , Δ is the number of calibration data in each camera view angle, and y i , δ is the actual camera observation of the intersection points P i in the δ th calibration data. x ^ i ( R , T , f x , k 1 ) and y ^ i ( R , T , f y , k 1 ) are functions of the camera extrinsic parameters, including rotation R, translation T, focal lengths f x and f y , and the first-order radial distortion coefficient k 1 of the camera lens. Note that, in the proposed method, x ^ i and y ^ i are not functions of P i , as opposed to the conventional approach [19]. This is because, once the rotation R and the translation T of the camera pose are fixed, the view plane of the line-scan camera is fixed. Therefore, the intersections points P i are simply functions of camera extrinsic parameters R and T, i.e.,
P i = f i ( R , T ) .
As points P i are fully determined by R and T, inserting them into x ^ i and y ^ i makes the optimization over-parametrized in the conventional approach. The function f i ( R , T ) can be obtained using 3D plane lines intersection, since the camera view plane is determined by R and T, and the line equations in the calibration target are known prior. As P i are no longer arguments of x ^ i and y ^ i , the proposed approach does not need to explicitly update the coordinates of P i at each optimization iteration as in the conventional approach [19]. They are implicitly updated along with the change of R and T.
Using the defined camera model in Equation (5), the expected camera observation x ^ i ( R , T , f x , k 1 ) and y ^ i ( R , T , f y , k 1 ) in Equation (28) can be formulated as follows:
x ^ i ( R , T , f x , k 1 ) = f x r 11 X i + r 12 Y i + r 13 Z i + t 1 r 31 X i + r 32 Y i + r 33 Z i + t 3 y ^ i ( R , T , f x , k 1 ) = f y r 21 X i + r 22 Y i + r 23 Z i + t 2 r 31 X i + r 32 Y i + r 33 Z i + t 3 1 + k 1 r 21 X i + r 22 Y i + r 23 Z i + t 2 r 31 X i + r 32 Y i + r 33 Z i + t 3 2 + v 0 .
Since the line-scan camera only records one spatial dimension, it is not necessary to model f x . The parameter is only required to scale the reprojection error x ^ i ( R , T , f x , k 1 ) 0 . For practical optics, f x f y , so Equation (30) can be simplified to
x ^ i ( R , T , f x , k 1 ) = f y r 11 X i + r 12 Y i + r 13 Z i + t 1 r 31 X i + r 32 Y i + r 33 Z i + t 3 y ^ i ( R , T , f x , k 1 ) = f y r 21 X i + r 22 Y i + r 23 Z i + t 2 r 31 X i + r 32 Y i + r 33 Z i + t 3 1 + k 1 r 21 X i + r 22 Y i + r 23 Z i + t 2 r 31 X i + r 32 Y i + r 33 Z i + t 3 2 + v 0 .
Note that X i , Y i , and Z i are the X, Y, and Z coordinates of points P i that can be obtained from Equation (29) using R and T. Furthermore, in the proposed method, both x ^ i and y ^ i in Equation (31) are properly scaled to obtain the re-projection errors in pixels. In the conventional method only, y ^ i is scaled to represent the re-projection error in pixels. This means the overall accumulated least squares error has different weights in the X- and Y-directions, which in our opinion is sub-optimal.
Equations (28) and (31) form a classic least squares optimization problem minimizing the camera re-projection error where the Levenberg–Marquardt algorithm [27] can be used to solve the problem. The parameters to be optimized are the camera intrinsic parameters f y , v 0 , and k 1 and the extrinsic parameters R and T. As mentioned before, the intersection points P i do not need to be updated at each iteration step, since they are implicitly updated due to the change in R and T.

3.6. Joint Nonlinear Optimization for Multi Camera Poses

The nonlinear optimization in Section 3.5 only uses observations from a single camera view angle. This is problematic as the parameters have different sensitivities to different view angles. To minimize this effect, we use calibration data from different camera view angles and jointly optimize all extrinsic and intrinsic parameters. The error of this joint nonlinear optimization can be defined by extending Equation (28) such that
e j o i n t = ζ = 1 Z δ = 1 Δ i = 1 40 [ ( x ^ ζ , i ( R ζ , T ζ , f x , k 1 ) 0 ) 2 + ( y ^ ζ , i ( R ζ , T ζ , f y , k 1 ) y ζ , i , δ ) 2 ]
where the subscript ζ represents a different camera view angle. The terms x ^ ζ , i ( R ζ , T ζ , f x , k 1 ) and y ^ ζ , i ( R ζ , T ζ , f y , k 1 ) can be computed using Equations (31) and (29), and different R ζ and T ζ for each camera view angle ζ = 1 , , Z .
Note that results of this joint optimization step cannot be achieved by simply averaging the optimization results from Section 3.5 over all camera view angles. Since f y and k 1 are independent of the camera view angle, they should be modelled as a constant across all observations. The proposed method is able to model correctly the camera view angle dependent and independent terms while making full use of the observation data. This results in a solution that is both accurate and robust to observation.

4. Validation

In this section, the proposed calibration method is validated through simulation in Section 4.1 and a calibration using real hyperspectral line-scan data in Section 4.2.

4.1. Simulation

In real-world calibration, the task is to estimate the true value of a set of parameters through indirect observation and optimisation. As a result, it is difficult to assess how close the estimated parameters are to their true values. Additionally, real-world calibration tasks are labour-intensive, making it time-consuming to vary parameters during data collection. To analyse the proposed calibration method in a highly repeatable environment with access to ground truth measurements, we developed a simulation.
The simulation models a line-scan camera facing the calibration target shown in Figure 3. An illustration of the simulation is shown in Figure 6. The parameters of the simulation are summarized in Table 1 and similar to those use in [19]. In the simulation, 15 camera view angles and 100 images per view angle are generated to compare the performance of the conventional method [19], the proposed method without joint optimization (Section 3.5) and the proposed method with joint optimization using multiple camera view angles (Section 3.6). In practice, calibration data from more number of and more widely distributed view angles is more helpful in reducing the estimation errors. Empirically, we found calibration data from more than 10 widely distributed view angles can yield satisfying results.
To obtain results using the conventional method, the estimates from all 100 images in each camera view angle are averaged to reduce the error. As there are 15 camera view angles, 15 estimates are obtained. The conventional method was re-implemented and follows the DLS and nonlinear optimization with the intersection points P i update steps documented in the paper. However, we change the nonlinear optimization step to include radial distortion k 1 so that a fair comparison can be made with our proposed method. In our proposed method without joint optimization, the camera parameters are obtained by optimizing 100 images in each camera view angle. Again, 15 estimates are obtained. In the proposed method with joint optimization, 100 images from 14 camera view angles are jointly optimized. Using this method, 15 different estimates from 15 different combinations of camera view angles can be obtained.
Three simulated experiments were performed. Section 4.1.1 examines the affect of observation noise on the estimated extrinsic and intrinsic parameters. Section 4.1.2 models the affect of a systematic bias in the observation on the estimated intrinsic parameters. Finally, Section 4.1.3 shows the effect of poor tolerances in the calibration target on the estimated intrinsic parameters. In all of the following figures in this section, plots in blue are the results of the conventional method, red plots are the results of the proposed method without joint optimization, and green plots are the results of the proposed method with joint optimization. In the following box and whisker plots, the bottom and top edges of each box indicate the 25% and 75% percentiles, respectively, and the central mark indicates the median. The whiskers extend to the most extreme data points not considered outliers. Outliers are plotted individually using the ’+’ symbol.

4.1.1. Noisy Camera Observations

The effect of observation noise on y i is tested by adding increasing levels of Gaussian noise, ranging from 0.2 to 2 pixel to the observations.
Figure 7 shows the statistics of the error in the extrinsic parameter estimates. Extrinsic calibration results of the proposed method with joint optimization are not shown since not all extrinsic parameters are estimated at each combination of camera view angles. The data show that the proposed method without joint optimization always produces estimates that are similar to, or better than, the conventional method. In particular, the proposed method without joint optimization substantially outperforms the conventional method in rotation along the X-axis (Figure 7a) and translation along the Y-axis (Figure 7d). In the conventional method, the error in these values grows as the magnitude of the observation noise increases. In our proposed method, the error remains relatively constant with a tighter spread as the noise level increases.
The statistics of the error in the intrinsic parameter estimates are shown in Figure 8. All three methods are able to achieve a similar accuracy when estimating the focal length f y (Figure 8a) and the radial distortion coefficient k 1 (Figure 8c). For both parameters, the joint optimization method holds a small advantage. Both the proposed optimization methods are capable of producing more accurate estimates of principal point v 0 (Figure 8b). These trends are confirmed by the RMSE of the camera intrinsic parameter estimates as shown in Figure 9.
A clear difference in the results is that the joint optimization method is able to produce estimates that yield a lower spread of error values (Figure 8). This advantage is due to proper handling of the extrinsic parameters as variable over different view angles and the intrinsic parameters as fixed across all view angles. By optimising over all data, the method is both robust to noise and less prone to view angle dependent biases.

4.1.2. Noisy Camera Observations with Bias

The effect of systematic error during the signal processing detailed in Section 3.3 is tested by adding increasing offsets to the camera observations y i . In each simulation, the spread of the noise is held at a standard deviation of one pixel while the mean offset is increased.
The results are shown in Figure 10. It can be seen from the figure that the proposed method with joint optimization outperforms the other two in estimation of all three intrinsic parameters. The accuracy of the conventional method and the proposed method without joint optimization are similar in estimating the focal length f y and the radial distortion k 1 parameters. Both proposed methods clearly yield better accuracy in estimation of the principal point v 0 . In Figure 10a,c, some RMS estimation errors of larger offsets are smaller than those of smaller offsets. We think that this is due to the randomness of Gaussian noise added to the observations in simulation.

4.1.3. Calibration Target Error

Finally, the calibration methods are subject to error in the calibration board. Although the calibration target has relatively simple geometry, it can be difficult to manufacture a large, light-weight target with perfectly perpendicular planes. Given the angle between the two planes is likely to be the largest source of error during construction, this error is simulated. This is done by adding errors, ranging from 0 to 0.9 degrees, to the angle between two planes. In addition, Gaussian noise with one pixel standard deviation is added to the camera observation y i .
Figure 11 shows the effect that the error in the angle between the calibration target planes has on the RMSE of the intrinsic parameters. We can see from Figure 11a that all three methods yield similar accuracies in estimating the focal length f y , while the proposed method with joint optimization performs slightly better when the error in the angle is small. For the principal point v 0 in Figure 11b, both proposed methods clearly outperform the conventional method, with the proposed method with joint optimization slightly better than the one without. Finally, for estimation of radial distortion k 1 , the proposed method without joint optimization is slighter better than the conventional method, while the joint optimization clearly outperforms the other two.

4.2. Experimental Results

In this section, calibration of a hyperspectral line-scan camera using real experimental data is presented. As shown in Figure 12, a hyperspectral line-scan camera was mounted on an agricultural robot, Ladybird. Ladybird was designed and built at the Australian Centre for Field Robotics (ACFR) at The University of Sydney as a flexible tool to support a range of agricultural research applications [28,29,30,31,32]. The Resonon Pika XC-2 visible to near infrared (VNIR) hyperspectral line-scan camera is mounted on top of the Ladybird platform and oriented such that the scan line is horizontal and pitched down for scanning the ground surface. The camera is configured to produce hyperspectral images of 1936 spatial by 1216 spectral pixels (a spectral resolution of approximately 1.3 nm from 400 to 1000 nm) at a frame rate of 100, 12-bit images per second. A Schneider Cinegon 8 mm lens is used, and manually focused with a checker board at the typical imaging distance. The parameters of the calibration target are the same as those used in the simulations and are summarized in Table 1.
There are 15 groups of calibration data recorded in the experiment, with each group of data recorded from one particular camera view angle. Each group of calibration data consists of 60 hyperspectral images, so there are 900 hyperspectral images all together for the calibration. The final calibration results of intrinsic parameters f y , v 0 , and k 1 , together with the maximum re-projection error and the re-projection RMSE in pixels are shown in Table 2. The results are obtained using the joint nonlinear optimization using multiple camera poses. Each row in Table 2, corresponds to a calibration result where one group of data from a particular view angle is excluded. Since simulation results presented before show superior performance of the joint nonlinear optimization using multiple camera poses, the nonlinear optimization using single camera pose is not carried out.
Since there is no ground truth data available, no comparison is made with the conventional method [19]. However, by comparing the re-projection errors with the conventional method, we can see that both the maximum re-projection errors and the re-projection RMSE in all results in Table 2 are better than those reported in the conventional method, which has the maximum and re-projection RMSE of 1.779 and 0.547 pixel, respectively.

5. Discussion

The simulation and experimental results shown in Section 4.1 and Section 4.2 demonstrate that the proposed method can effectively estimate the calibration parameters using observations from multiple images and multiple view angles. The proposed joint optimization method yields better accuracy compared to the conventional method. There are several reasons that contribute to the performance of the joint optimization method.
A distinct advantage of the proposed joint optimisation method is that it can utilise observations from multiple images and multiple view angles in a principled manner. To take advantage of this feature, more images need to be recorded at different camera view angles. While this does increase the labour required to perform a calibration, the high frame-rate of line-scan cameras makes it easy to collect many images in a short time frame. The proposed signal processing step (Section 3.3) also eliminates the need for any labelling or manual feature extraction prior to optimisation. The experiment described in Section 4.2 only took around 15 min to record all 15 camera view angles. Since more parameters need to be optimised, the proposed joint optimisation method also needs more computing time. Despite needing more resources than the conventional method, the requirements are not onerous. The results reported in Section 4.2 took 10 min to generate using Matlab on a consumer grade desktop with frequency of 2.30 GHz per core in a single thread mode.
Another reason contributing to the better performance of the proposed joint optimization method is the way the calibration method is parameterised. As described in Section 3.5, in the conventional method, the least squares objective function is over-parameterized. This means the conventional method must update the intersection points P i at every optimisation iteration. This decoupling of correlated parameters leads to sub-optimal solutions since the resulting point P i are not guaranteed to be on the view plane defined by the resulting extrinsic parameters R and T. The proposed method removes the over-parameterisation. This is done by formulating the intersection points P i as functions of R and T so that the resulting solution is optimal for the problem defined.
A final significant improvement is that the optimization error function, Equation (31), has been redefined to reflect the re-projection errors of intersection points in pixels and to include the effect of radial distortion. The conventional method ignores radial distortion, which is known to be an important parameter [15]. In addition, in the conventional method, the residual error along the X-axis is not scaled to reflect the re-projection error in pixels as the residual error along the Y-axis is, which leads to different weights for errors along the X- and Y-axes.
The results shown in Figure 11 indicate that the calibration results are sensitive to the precision of the calibration target for both the proposed and conventional methods. For example, when the tilt angle between two planes of the calibration target has an error of 1 degree and the camera observation noise has a variance of 1 pixel, the estimation errors of focal length f y and principal point v 0 exceed 40 pixels. To make sure that errors in f y and v 0 are less than 20 pixels, the tilt angle should have no more than half a degree error. This enforces a strong tolerance requirement on the manufacturing of the calibration target. Another problem that can arise due to the sensitivity to the calibration target is, even if the target can be made with high precision, its shape can change slightly according to different temperature or as time goes by. One way to tackle this problem is to accurately measure the change (e.g., the tilt angle) before each time of calibration and update equations of 3D lines on the target accordingly.
The main sources of error, the observation noise and error in calibration target, have already been discussed. There are several other factors that can influence the accuracy of the result. The camera optical center is assumed to be aligned with the sensor array in both the proposed and conventional methods. However, when the optical center is not aligned with the center of the sensor and lens distortion is present, the view plane might not necessarily be straight in the world frame. In fact, the actual view plane might be slightly curved in this scenario, which means the camera model presented in Section 3.1 is not valid [15]. Another approximation made in the proposed method is that f x is substituted by f y in Equation (31). As mentioned, this is because f x is not needed for a line-scan camera calibration and is only used to scale the re-projection error x ^ i ( R , T , f x , k 1 ) to proper pixel units. Since f x is almost the same as f y in terms of magnitude, f y can be used to scale the re-projection error x ^ i ( R , T , f x , k 1 ) as well. This leads to very small different weights in re-projection errors along the X- and Y-axes, but the effect is marginal.

6. Conclusions

In this paper, we present an improved cross-ratio invariant based calibration method to calibrate the intrinsic parameters of a hyperspectral line-scan camera. As opposed to the conventional method [19], the calibration method proposed in this paper has been formulated to include the radial distortion coefficient of a camera lens. Another major contribution of the proposed approach is its ability to estimate the camera intrinsic parameters from multiple images gathered at multiple camera view angles. To facilitate this feature, we also present a signal processing method for converting images into calibration features. The result is a principled calibration frame work that can produce accurate estimates with little human supervision. Comprehensive simulation and experimental results show our proposed method is able to produce more accurate and consistent results compared to previous methods. Potential future work includes estimation of error parameters in the calibration target, such as the error in the angle between the orthogonal planes, together with the intrinsic parameters. This will further improve accuracy of the calibration and make the method more robust to the error in calibration target due to manufacturing tolerances.

Author Contributions

D.S. conceived and implemented the method, while A.B. and S.S. supervised the work and provided significant conceptual input. D.S. and A.B. gathered the relevant data in the field. The paper was written by D.S. and reviewed by A.B. and S.S.

Funding

This research was funded by Horticulture Innovation Australia (HIA) under grant number VG15003.

Acknowledgments

This work was supported by the Australian Centre for Field Robotics (ACFR) at The University of Sydney. For more information about robots and systems for agriculture at the ACFR, please visit http://sydney.edu.au/acfr/agriculture.

Conflicts of Interest

The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Okamoto, H.; Lee, W.S. Green citrus detection using hyperspectral imaging. Comput. Electron. Agric. 2009, 66, 201–208. [Google Scholar] [CrossRef]
  2. Okamoto, H.; Murata, T.; Kataoka, T.; HATA, S. Plant classification for weed detection using hyperspectral imaging with wavelet analysis. Weed Biol. Manag. 2007, 7, 31–37. [Google Scholar] [CrossRef]
  3. Okamoto, H.; Murata, T.; Kataoka, T.; Hata, S. Weed detection using hyperspectral imaging. In Proceedings of the 2004 Conference of Automation Technology for Off-Road Equipment, Kyoto, Japan, 7–8 October 2004. [Google Scholar]
  4. Suzuki, Y.; Okamoto, H.; Kataoka, T. Image segmentation between crop and weed using hyperspectral imaging for weed detection in soybean field. Environ. Control Biol. 2008, 46, 163–173. [Google Scholar] [CrossRef]
  5. Suzuki, Y.; Okamoto, H.; Tanaka, K.; Kato, W.; Kataoka, T. Estimation of chemical composition of grass in meadows using hyperspectral imaging. Environ. Control Biol. 2008, 46, 129–137. [Google Scholar] [CrossRef]
  6. Vanegas, F.; Bratanov, D.; Powell, K.; Weiss, J.; Gonzalez, F. A Novel Methodology for Improving Plant Pest Surveillance in Vineyards and Crops Using UAV-Based Hyperspectral and Spatial Data. Sensors 2018, 18, 260. [Google Scholar] [CrossRef] [PubMed]
  7. Mo, C.; Kim, G.; Lim, J.; Kim, M.S.; Cho, H.; Cho, B.K. Detection of lettuce discoloration using hyperspectral reflectance imaging. Sensors 2015, 15, 29511–29534. [Google Scholar] [CrossRef] [PubMed]
  8. Lee, H.; Kim, M.S.; Jeong, D.; Delwiche, S.R.; Chao, K.; Cho, B.K. Detection of cracks on tomatoes using a hyperspectral near-infrared reflectance imaging system. Sensors 2014, 14, 18837–18850. [Google Scholar] [CrossRef] [PubMed]
  9. Alchanatis, V.; Safren, O.; Levi, O.; Ostrovsky, V.; Stafford, J.V. Apple yield mapping using hyperspectral machine vision. In Proceedings of the 2007 6th European Conference on Precision Agriculture, Skiathos, Greece, 3–6 June 2007; pp. 555–562. [Google Scholar]
  10. Cetin, M.; Musaoglu, N. Merging hyperspectral and panchromatic image data: Qualitative and quantitative analysis. Int. J. Remote Sens. 2009, 30, 1779–1804. [Google Scholar] [CrossRef]
  11. Lucas, R.; Rowlands, A.; Niemann, O.; Merton, R. Hyperspectral Sensors and Applications; Springer: New York, NY, USA, 2004; pp. 11–49. [Google Scholar]
  12. Tsai, R. A versatile camera calibration technique for high-accuracy 3D machine vision metrology using off-the-shelf TV cameras and lenses. IEEE J. Robot. Autom. 1987, 3, 323–344. [Google Scholar] [CrossRef]
  13. Zhang, Z. A flexible new technique for camera calibration. IEEE Trans. Pattern Anal. Mach. Intell. 2000, 22, 1330–1334. [Google Scholar] [CrossRef] [Green Version]
  14. Gupta, R.; Hartley, R.I. Linear pushbroom cameras. IEEE Trans. Pattern Anal. Mach. Intell. 1997, 19, 963–975. [Google Scholar] [CrossRef] [Green Version]
  15. Yao, M.; Zhao, Z.; Xu, B. Geometric calibration of line-scan camera using a planar pattern. J. Electron. Imaging 2014, 23, 013028. [Google Scholar] [CrossRef]
  16. Horaud, R.; Mohr, R.; Lorecki, B. On single-scanline camera calibration. IEEE Trans. Robot. Autom. 1993, 9, 71–75. [Google Scholar] [CrossRef] [Green Version]
  17. Mohr, R.; Morin, L. Relative positioning from geometric invariants. In Proceedings of the 1991 IEEE Conference on Computer Vision and Pattern Recognition (CVPR 1991), Maui, HI, USA, 3–6 June 1991; pp. 139–144. [Google Scholar]
  18. Luna, C.A.; Mazo, M.; Lazaro, J.L.; Vazquez, J.F. Calibration of line-scan cameras. IEEE Trans. Instrum. Meas. 2010, 59, 2185–2190. [Google Scholar] [CrossRef]
  19. Li, D.; Wen, G.; Hui, B.W.; Qiu, S.; Wang, W. Cross-ratio invariant based line scan camera geometric calibration with static linear data. Opt. Lasers Eng. 2014, 62, 119–125. [Google Scholar] [CrossRef]
  20. Drareni, J.; Roy, S.; Sturm, P. Plane-based calibration for linear cameras. Int. J. Comput. Vis. 2011, 91, 146–156. [Google Scholar] [CrossRef]
  21. Hui, B.; Wen, G.; Zhao, Z.; Li, D. Line-scan camera calibration in close-range photogrammetry. Opt. Eng. 2012, 51, 053602. [Google Scholar] [CrossRef]
  22. Behmann, J.; Mahlein, A.K.; Paulus, S.; Kuhlmann, H.; Oerke, E.C.; Plumer, L. Calibration of hyperspectral close-range pushbroom cameras for plant phenotyping. ISPRS J. Photogramm. Remote Sens. 2015, 106, 172–182. [Google Scholar] [CrossRef]
  23. Li, D.; Wen, G.; Qiu, S. Cross-ratio-based line scan camera calibration using a planar pattern. Opt. Eng. 2016, 55, 014104. [Google Scholar] [CrossRef]
  24. Hui, B.; Wen, G.; Zhang, P.; Li, D. A novel line scan camera calibration technique with an auxiliary frame camera. IEEE Trans. Instrum. Meas. 2013, 62, 2567–2575. [Google Scholar] [CrossRef]
  25. Weng, J.; Cohen, P.; Herniou, M. Camera calibration with distortion models and accuracy evaluation. IEEE Trans. Pattern Anal. Mach. Intell. 1992, 14, 965–980. [Google Scholar] [CrossRef]
  26. Boor, C.D. A Practical Guide to Splines; Springer: New York, NY, USA, 1978. [Google Scholar]
  27. More, J.J. The Levenberg–Marquardt algorithm: Implementation and theory. Numer. Anal. 1978, 630, 105–116. [Google Scholar]
  28. Underwood, J.; Wendel, A.; Schofield, B.; McMurray, L.; Kimber, R. Efficient in-field plant phenomics for row-crops with an autonomous ground vehicle. J. Field Robot. 2017, 34, 1061–1083. [Google Scholar] [CrossRef]
  29. Underwood, J.P.; Calleija, M.; Taylor, Z.; Hung, C.; Nieto, J.; Fitch, R.; Sukkarieh, S. Real-time target detection and steerable spray for vegetable crops. In Proceedings of the 2015 International Conference on Robotics and Automation: Robotics in Agriculture Workshop, Seattle, WA, USA, 26–30 May 2015; pp. 26–30. [Google Scholar]
  30. Wendel, A.; Underwood, J. Illumination compensation in ground based hyperspectral imaging. ISPRS J. Photogramm. Remote Sens. 2017, 129, 162–178. [Google Scholar] [CrossRef]
  31. Wendel, A.; Underwood, J. Self-supervised weed detection in vegetable crops using ground based hyperspectral imaging. In Proceedings of the 2016 IEEE International Conference on Robotics and Automation (ICRA 2016), Stockholm, Sweden, 16–21 May 2016; pp. 5128–5135. [Google Scholar]
  32. Wendel, A.; Underwood, J. Extrinsic Parameter Calibration for Line Scanning Cameras on Ground Vehicles with Navigation Systems Using a Calibration Pattern. Sensors 2017, 17, 2491. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The Ladybird robot developed by Australian Centre for Field Robotics (ACFR) at The University of Sydney.
Figure 1. The Ladybird robot developed by Australian Centre for Field Robotics (ACFR) at The University of Sydney.
Sensors 18 01885 g001
Figure 2. Structure of the proposed method. In the first step, multiple images of the calibration target are gathered at different camera view angles. A signal processing step (Section 3.3) is used to locate calibration feature points in each hyperspectral image. In the next step (Section 3.4), the DLS is used on each set of calibration feature points to estimate the intrinsic and extrinsic parameters of the line-scan camera, excluding radial distortion. At each camera view angle, the DLS estimates are averaged and used as the starting location for a nonlinear least squares optimization of the camera intrinsic and extrinsic parameters including radial distortion (Section 3.5). This is done by minimizing the re-projection errors of the calibration feature points at each camera view angle. A final nonlinear least squares optimization is performed to minimize the re-projection errors of all calibration feature points jointly (Section 3.6). The joint optimisation is initialised using the average intrinsic parameters from all view angles and all extrinsic parameters from the previous step.
Figure 2. Structure of the proposed method. In the first step, multiple images of the calibration target are gathered at different camera view angles. A signal processing step (Section 3.3) is used to locate calibration feature points in each hyperspectral image. In the next step (Section 3.4), the DLS is used on each set of calibration feature points to estimate the intrinsic and extrinsic parameters of the line-scan camera, excluding radial distortion. At each camera view angle, the DLS estimates are averaged and used as the starting location for a nonlinear least squares optimization of the camera intrinsic and extrinsic parameters including radial distortion (Section 3.5). This is done by minimizing the re-projection errors of the calibration feature points at each camera view angle. A final nonlinear least squares optimization is performed to minimize the re-projection errors of all calibration feature points jointly (Section 3.6). The joint optimisation is initialised using the average intrinsic parameters from all view angles and all extrinsic parameters from the previous step.
Sensors 18 01885 g002
Figure 3. Calibration target used in the proposed method. w p and h p are the width and height of the triangles. The triangles are repeated using a constant offset of h p . The coordinate frame of the calibration target is denoted in orange and the coordinate frame of the camera is denoted in blue. The view plane of the line-scan camera is shown in green and intersects with the black triangles at points P i ( i = 1 , , 40 ) .
Figure 3. Calibration target used in the proposed method. w p and h p are the width and height of the triangles. The triangles are repeated using a constant offset of h p . The coordinate frame of the calibration target is denoted in orange and the coordinate frame of the camera is denoted in blue. The view plane of the line-scan camera is shown in green and intersects with the black triangles at points P i ( i = 1 , , 40 ) .
Sensors 18 01885 g003
Figure 4. An image captured by a hyperspectral line-scan camera facing the calibration target shown in Figure 3. The camera gathers data across the view plane. In the 2D image returned by the camera, the x-axis records spatial information across the view plane and the y-axis records spectral information.
Figure 4. An image captured by a hyperspectral line-scan camera facing the calibration target shown in Figure 3. The camera gathers data across the view plane. In the 2D image returned by the camera, the x-axis records spatial information across the view plane and the y-axis records spectral information.
Sensors 18 01885 g004
Figure 5. Estimation of camera observations points y i ( i = 1 , , 40 ) from a hyperspectral line-scan camera image. The blue line is the up-sampled and cubic spline interpolated gradient score value G ( j ) . The red circles are estimated camera observation point y i ( i = 1 , , 40 ) . The camera observation points are obtained by extracting the 42 highest peaks and excluding the first and last peaks along the spatial dimension. The first and last peaks correspond to the edges of the calibration target.
Figure 5. Estimation of camera observations points y i ( i = 1 , , 40 ) from a hyperspectral line-scan camera image. The blue line is the up-sampled and cubic spline interpolated gradient score value G ( j ) . The red circles are estimated camera observation point y i ( i = 1 , , 40 ) . The camera observation points are obtained by extracting the 42 highest peaks and excluding the first and last peaks along the spatial dimension. The first and last peaks correspond to the edges of the calibration target.
Sensors 18 01885 g005
Figure 6. Simulation of a line-scan camera facing a calibration target. The line-scan camera is represented by the blue, red, and green axes, which represent X, Y, and Z-axes of the line-scan camera, respectively. The camera view plane is represented by red dash lines. Contours of triangles in the calibration target are represented by black lines. The intersection points of the camera view plane and contours of black triangles are denoted by blue dots. The X, Y, and Z-axes of the figure represent the coordinate frame of the target.
Figure 6. Simulation of a line-scan camera facing a calibration target. The line-scan camera is represented by the blue, red, and green axes, which represent X, Y, and Z-axes of the line-scan camera, respectively. The camera view plane is represented by red dash lines. Contours of triangles in the calibration target are represented by black lines. The intersection points of the camera view plane and contours of black triangles are denoted by blue dots. The X, Y, and Z-axes of the figure represent the coordinate frame of the target.
Sensors 18 01885 g006
Figure 7. Box plots of estimation errors in camera extrinsic parameters w.r.t. camera observation noise. The box plots in blue represent estimation results using the conventional method [19] and red ones are of the proposed method without joint optimization.
Figure 7. Box plots of estimation errors in camera extrinsic parameters w.r.t. camera observation noise. The box plots in blue represent estimation results using the conventional method [19] and red ones are of the proposed method without joint optimization.
Sensors 18 01885 g007
Figure 8. Box plots of estimation errors in camera intrinsic parameters w.r.t. camera observation noise. The box plots in blue represent estimation results using the conventional method [19], red plots are of the proposed method without joint optimization, and green plots are of the proposed method with joint optimization.
Figure 8. Box plots of estimation errors in camera intrinsic parameters w.r.t. camera observation noise. The box plots in blue represent estimation results using the conventional method [19], red plots are of the proposed method without joint optimization, and green plots are of the proposed method with joint optimization.
Sensors 18 01885 g008
Figure 9. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. camera observation noise. The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization and the proposed method with joint optimization, respectively.
Figure 9. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. camera observation noise. The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization and the proposed method with joint optimization, respectively.
Sensors 18 01885 g009
Figure 10. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. systematic errors in estimation of camera observation y i . The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization and the proposed method with joint optimization, respectively.
Figure 10. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. systematic errors in estimation of camera observation y i . The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization and the proposed method with joint optimization, respectively.
Sensors 18 01885 g010
Figure 11. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. error in the angle between two planes of the calibration target. The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization, and the proposed method with joint optimization, respectively.
Figure 11. Root-mean-square error (RMSE) in camera intrinsic parameters w.r.t. error in the angle between two planes of the calibration target. The blue, red, and green plots represent RMSE of the conventional method [19], the proposed method without joint optimization, and the proposed method with joint optimization, respectively.
Sensors 18 01885 g011
Figure 12. The experimental setup of the hyperspectral line-scan camera calibration.
Figure 12. The experimental setup of the hyperspectral line-scan camera calibration.
Sensors 18 01885 g012
Table 1. Parameters in simulation.
Table 1. Parameters in simulation.
ParametersValues
Width of the triangle in the target ( w p )0.24 m
Height of the triangle in the target ( h p )0.04 m
Ground truth value of the focal length ( f y )5000 pix
Ground truth value of the principal point ( v 0 )1024 pix
Number of pixels in spatial dimension2048
Rotation (R) of camera in axis angle(−163.6, 0.095, 8.203)
Translation (T) of camera(−0.071, 0.115, 1.671) m
Calibration images for each camera view angle100
Number of camera view angles15
Least square optimiserLevenberg–Marquardt
Table 2. Calibration results of the experimental data. The units of f y , v 0 , and re-proj errors are in pixels.
Table 2. Calibration results of the experimental data. The units of f y , v 0 , and re-proj errors are in pixels.
No.Focal Length f y Principal Point v 0 Radial Distortion k 1 Max Re-Proj. ErrorRe-Proj. RMSE
13922.7989.0−0.01101.76480.3782
23925.5988.6−0.00781.76840.3776
33926.4988.3−0.00621.76930.3764
43920.6990.1−0.01341.76400.3794
53910.8990.1−0.02391.74660.3804
63914.5998.4−0.02211.77620.3766
73914.3998.4−0.02341.77560.3756
83911.2999.0−0.02811.77080.3748
93919.0995.6−0.01491.77710.3783
103922.1992.7−0.01111.70620.3799
113918.9990.0−0.01441.76100.3764
123918.4990.3−0.01431.76090.3756
133916.2992.1−0.01651.76230.3743
143916.1990.5−0.01781.75740.3768
153915.5991.3−0.01891.75840.3782
Mean3918.1992.3425−0.01631.76130.3772
STD4.70883.72500.00620.01730.0018

Share and Cite

MDPI and ACS Style

Su, D.; Bender, A.; Sukkarieh, S. Improved Cross-Ratio Invariant-Based Intrinsic Calibration of A Hyperspectral Line-Scan Camera. Sensors 2018, 18, 1885. https://doi.org/10.3390/s18061885

AMA Style

Su D, Bender A, Sukkarieh S. Improved Cross-Ratio Invariant-Based Intrinsic Calibration of A Hyperspectral Line-Scan Camera. Sensors. 2018; 18(6):1885. https://doi.org/10.3390/s18061885

Chicago/Turabian Style

Su, Daobilige, Asher Bender, and Salah Sukkarieh. 2018. "Improved Cross-Ratio Invariant-Based Intrinsic Calibration of A Hyperspectral Line-Scan Camera" Sensors 18, no. 6: 1885. https://doi.org/10.3390/s18061885

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop