circular-camera-calibration
None
view repo
Robust and accurate camera calibration is essential for 3D reconstruction in light microscopy under circular motion. Conventional methods require either accurate key point matching or precise segmentation of the axial-view images. Both remain challenging because specimens often exhibit transparency/translucency in a light microscope. To address those issues, we propose a probabilistic inference based method for the camera calibration that does not require sophisticated image pre-processing. Based on 3D projective geometry, our method assigns a probability on each of a range of voxels that cover the whole object. The probability indicates the likelihood of a voxel belonging to the object to be reconstructed. Our method maximizes a joint probability that distinguishes the object from the background. Experimental results show that the proposed method can accurately recover camera configurations in both light microscopy and natural scene imaging. Furthermore, the method can be used to produce high-fidelity 3D reconstructions and accurate 3D measurements.
READ FULL TEXT VIEW PDF
The method of a linear high dynamic range imaging using solid-state
phot...
read it
Camera network and multi-camera calibration for external parameters is a...
read it
Accurate calibration of intrinsic parameters of the light field (LF) cam...
read it
Although many advances have been made in light-field and camera-array im...
read it
In view of contemporary panoramic camera-laser scanner system, the
tradi...
read it
The key to accurate 3D shape measurement in Fringe Projection Profilomet...
read it
We address the problem of camera-to-laser-scanner calibration using a
ch...
read it
None
Circular motion is commonly used in light microscopy because it simplifies the imaging protocol [1]
. A specimen in circular motion presents its longitudinal views from a full revolution, which makes most of its features observable. The acquired images can be considered as the readout of multiview imaging. Thus, the image-based 3D reconstruction approaches may produce a 3D volumetric representation of a specimen, from which 3D visualization and quantitative measurements can be performed. Because this type of methods requires an accurate estimation of the projection from the 3D world frame to each of the images, a robust and accurate camera calibration becomes necessary
[2, 3], even for the popular deep learning based reconstruction methods
[4, 5, 6].Conventional calibration methods capture images for a regular pattern like a checkboard to estimate the camera intrinsic configurations, including the focal length, pixel size, image center, etc [7, 8]. Bundle adjustment is then taken to get the camera extrinsic configurations, i.e. the camera motion (transformation) against the subject [9]. Alternatively, the silhouette-based methods achieves this goal by taking the multiview masks of the subject as input. Three-dimensional (3D) projective geometry generates an accurate projection from the subject to each of the masks. The area coherence based method aims to maximize the overlap area between the projected images and the groundtruth masks [10]; The silhouette coherence based method aims at maximizing the intersection of the contours from the projected images and the groundtruth masks [11]; The shape coherence based method defines the voxel residual as the intersection of the cone-shaped projections, thus avoiding extract contours or surface area of the projected images [12, 13]. It should be noted that the methods mentioned above depend on either accurate key point matching or precise image segmentation. However, both are often difficult to achieve in light microscopy due to the commonly existing transparency/translucency of specimen.
To address the above issues, we propose a probabilistic inference based method for the camera calibration. In contrast to previous methods, our model is advantageous because it does not require accurate key point detection or precise image segmentation. Our method first transforms the images acquired from the circular motion into a probabilistic representation without the need for image segmentation. We then initialize a range of voxels which may cover the subject of interest (SoI). We project those voxels onto the probabilistically represented images according to 3D projective geometry. In such a manner, we assign a joint probability on each voxel by integrating the information from all the axial-view images. Finally, we formulate the camera calibration problem as the maximization of the separation of the SoI from the background, which is represented as a probabilistic inference. Through this probabilistic inference, we do not need to assign a hard-coded value on each voxel, which is usually determined by its total visibility from all the segmentations (silhouettes). We demonstrate the proposed method in a graphical scheme shown in Fig. 1.
In this section, we will elaborate the proposed probabilistic inference for the camera calibration in light microscopy under circular motion. The zebrafish are commonly used in life-science study [14]. The images used in this study were collected from a group of zebrafish larvae using a light microscope under circular motion based on the VAST-BioImager [1]. The VAST-BioImager loads a specimen into the view of a high-throughput camera (Allied Vision Systems, Pro Silica GE 1050 CCD, pixel size , image size pixels). A stepper motor manipulates the specimen to rotate along its longitudinal axis and the equipped camera captures image for each axial-view. Some examples of the acquired images are shown in Fig. 1 (A).
Let denote the center of a voxel in 3D world frame. The classical pinhole model finds its pixel location on an image via the projection matrix , denoted as . can be decomposed as . is the camera intrinsic matrix of the following form.
(1) |
Where, denotes the focal length; denote the scaling factors; define the image center. Because these configurations are provided by the vender, we focus on the camera extrinsic parameters, i.e. the camera motion, encoded in and
. Those two terms are the 3D rotation and translations, respectively. As the subject in our settings is rotating along a fixed axis, the yaw and pitch remain identical during motion; the roll and translation vary from different views. So, we organize the camera extrinsic parameters that will be optimized into a vector
, where and are the yaw and pitch; is the reparameterized translation; include the roll for each view (the starting view is defined as 0 degree). Given a fixed camera configuration , we can derive the projection matrix for each image.According to the color distribution, we construct two probabilistic models for the foreground () and background (
). We randomly select one image from the axial-view images. Then we either scratch on the image or roughly mask the image to collect the pixels separating the foreground and background. According to the normal distribution model, we use the RGB values of the collected pixels to construct the probabilistic models as follows.
(2) | ||||
Where and denote the mean and covariance of the color distribution, respectively. Given the axial-view images , we obtain the probabilistic representation for each of the images based on Eq.2.
Given a voxel , , and a projection matrix for an image , , we could find the pixel location of on that image through . In this way we can match the pixel location for the voxel on each of the image by the . By integrating the probabilities of the voxel from all the
images, we obtain its total probabilities which denote its likelihood of belonging to the foreground and background. This may be implemented by the form of joint probability distribution
[15].(3) | ||||
Taking all the voxels into account, we formulate the cost function as the joint probability distribution of all the voxels, which indicates the total likelihood of the separation from the foreground to the background in the constrained 3D world frame.
(4) |
For simplification, we use the following logarithmic form of the cost function.
(5) | ||||
We use the evolution strategy[16], one of the unconstrained optimization methods, to maximize the cost function. We have found that the evolution strategy offers a stable and robust performance if given a reasonable initialization. Specifically, we initialize the camera parameters as , where is the initial circular motion step manipulated by the stepper motor. We terminate the optimization when the output of the cost function is smaller than . In Fig.2, we compare the reconstruction effect of the camera calibration. A well-calibrated camera configuration produces a high-fidelity 3D model, and the projected masks can well-distinguish the subject.
In this section, we set up the voxel residual (VR) maximization method [12] as a baseline. We separately evaluate the VR and the proposed probabilistic inference (PI) model on a dataset acquired from our light microscope imaging system with circular motion. In order to evaluate the generalizability of our method, we compare the performance of the two methods on a public dataset of a dinosaur statue which is vailable from https://www.robots.ox.ac.uk/~vgg/data/data-mview.html. The pythonic implementation of our method is available at https://github.com/yuanhaoguo/circular-camera-calibration. We transfer some functions from [17].
We acquired images for three zebrafish specimens (ZF1, ZF2, ZF3) separately from 3, 4 and 5 days post fertilization (DPF). For each specimen, we evenly sample 21 views from the full revolution. The mechanical drift makes the rotation step of the specimen unstable and the rotation axis is not aligned with the specimen center. Thus, we need to calibrate the camera configurations to obtain accurate 3D models of the specimens.
As we do not have the groudtruth (GT) camera parameters in this dataset, we propose two strategies to compare the performance of the VR and PI methods. Based on the calibrated camera data obtained from these two methods, we first apply the shape-based 3D reconstruction method[12] to obtain 3D models. We then (1) inspect the visual effects of the 3D shapes; (2) use two 3D metrics, i.e. volume (V) and surface area (SA), to measure the 3D shapes.
In Figure 3 we visualize one selected view of the 3D reconstructed zebfafish models. We find that the proposed PI model provides similar performance as the baseline method, but without the need for accurate image segmentation. In Table 1 we show the 3D metrics. The VR method has been validated for its performance in obtaining accurate 3D measurements in light microscopy imaging under circular motion [12]. We see that the 3D metrics of the PI model are very close to those of the VR method. In fact, our method applies in diverse types of light microscopes, e.g. the bright-field and fluorescent, and diverse types of biological models, e.g. the zebrafish and mice (data not shown).
For the public dataset, i.e. the dinosaur statue, we have the groundtruth (GT) calibration data. Since its camera parameterization is slightly different from the settings in our zebrafish dataset, we design a strategy to enable the evaluation of the VR and PI methods on this dataset. (1) We decompose the camera parameters from the calibration data. (2) We keep the camera intrinsic parameters fixed, and add a certain level of noise on the camera extrinsic parameters, aligning the evaluation to our circular motion imaging protocol. Specifically, we choose 10 rotation angles of roll from the total 36 ones. We perturb the settings by adding 10 degrees on each of the chose angles. (3) We apply the VR and the proposed PI methods to optimize those noisy camera parameters. (4) We compare the optimized camera parameters with the GT data.
In Table 2 we compare the calibrated camera parameters from the VR and PI methods with the GT. Our method obtains rather accurate camera calibration result in the natural scene imaging condition. For a perceptual evaluation, we again apply the shape-based method to reconstruct the 3D model of the dinosaur statue. In Figure 3.1 (A), we show one original input image; We then separately show the 3D model reconstructed from: (B) the noisy camera parameters; (C) the groundtruth camera parameters; (D) the calibrated camera parameters of the VR method; (E) the calibrated camera parameters of the proposed PI model. The results show that our method can be used for the generic multiview stereo.
We proposed a new camera calibration method for light microscopy under circular motion. Our method takes a probabilistic inference to maximize the likelihood for the separation of the foreground and background. The method is free to complicated image pre-processing, like key point detection and image segmentation, which still recovers accurate camera parameters in light microscopy imaging.The potential of the method lies in its successful application in the camera calibration of generic imaging situations. Here we point out two issues. (1) As the cost function optimization in our method is unconstrained, which requires a relatively good initialization for the solution. In most imaging setups the mechanical parameters are usually known, e.g. the rotation angle of the control motors, so this problem could be solved by offering a reasonable estimation for the camera extrinsic parameters. (2) Due to the intensive 3D projections from the voxels to each of the images, the efficiency of our method still needs to improve. We plan to apply a parallel scheduler to accelerate the performance of the proposed method.
This study is supported in part by grant from the Chinese Academy of Sciences (No.Y9S9MS01/292019000056) and grant from the University of Chinese Academy of Sciences (No.115200M001). This study is partially supported by the National Natural Science Foundation of China (No.31971289). We thank Dr. Wolfgang Niem at Univ of Hannover and VGG group at Univ of Oxford to provide the dinosaur data.
Multiple view geometry in computer vision
, Cambridge university press, 2003.
Comments
There are no comments yet.