Professional Documents
Culture Documents
Abstract
This article proposes a solution for calibrating the projector images on sphere surface by applying the Catmull-
Rom spline and should be applied in the spatial simulation system. There are many problems that arose when
displaying the images from multi projectors on to the sphere surface. This affect significantly to the quality as
well as the authenticity of the image such as low-resolution image or overlapping images…, therefore, by
applying the Catmull-Rom spline for calibrating the projector images, those problems will be solved. This article
does the research, analyses to choose the Catmull-Rom spline parameter value which is suitable for grid
calibration image. Base on the above theory, the article proposes a solution for building calibration grid, then
developing the algorithm and software to adjust projector images using in simulation system. The obtained
result has been experimented in flight simulation training systems proving that the solution is feasible and
effective in adjusting simulation images.
Keywords: Catmull-Rom, sphere surface, Grid calibration image
ISSN 2734-9373
https://doi.org/10.51316/jst.150.ssad.2021.31.1.xx
Received: ......./..../......; accepted: ......./..../......
1
JST: Smart Systems and Devices
Volume , Issue , May 2022,
curve segments into a uniform curve. Therefore, the We have Pi = [xi yi]T present a point, the Catmull-
curve is at least the cubic curve. Rom spline C(t) is determined as the following
equations:
- Calculate conveniently : Using the control
𝑡2 −𝑡 𝑡−𝑡1
point in calculation. 𝐶(𝑡) = 𝐵1 + 𝐵2 (1)
𝑡2 −𝑡1 𝑡2 −𝑡1
There are many methods to establish the curve
like: Hermite, Bezier, Catmull-Rom, B-Splines… With:
However, the Catmull-Rom owns the most suitable 𝑡2 −𝑡 𝑡−𝑡0
𝐵1 = 𝐴1 + 𝐴2 (2)
feature in plotting the grid calibrated curve in applying 𝑡2 −𝑡0 𝑡2 −𝑡0
- B-Spline: the calculation method is too The parameter ti is the distance between two
complex, does not adapt with the time processing in control points [2]:
the 3D simulation system 𝛼
𝑡𝑖+1 = [√(𝑥𝑖+1 − 𝑥𝑖 )2 + (𝑦𝑖+1 − 𝑦𝑖 )2 ] + 𝑡𝑖 (7)
The Section 2 of this article will introduce about
the Catmull-Rom spline. The section 3 will do research We have α [0,1], i = [0,3], t0=0.
and analyse the feature of the Catmull-Rom spline in
Barry and Goldman recursive algorithm has been
order to choose the suitable parameterization α with
demonstrated in the Triangular Schemes (Figure 1) to
the initial requirement, then applying this spline in
establish the C(t) equation which present the Catmull -
plotting the grid calibration curve. Section 4 introduce
Rom spline. The cubic case (n=3) is shown. This
the software was built to calibrate the image of the
pyramid scheme includes the triangular formed by two
multi projectors in displaying on the sphere surface.
nodes at the base and arrows with coefficients leading
Finally, some conclusions with assessments of the
to its apex. The value on the apex is the sum of two
result and the next improvements in the future would
multiplication between the nodes at the base and the
be presented.
coefficient along the arrow direction. The cubic
2. Introduce About Catmull-Rom Spline polynomials are considered for the above scheme
corresponding with three stages and each adds a single,
The Catmull-Rom spline [1] is a method that linear factor.
approximate a set of points (named control points) by
In the equation from (1) to (6), insert t=t1 into the
using the interpolation with the local calibration by
A1, A2, A3, B1, B2,C, the result at t=t1 is C(t1)=P1.
combining the Lagrange and B-spline. Barry and
Similarly, substituting t=t2 into the above equation, the
Goldman [3] have used this feature to construct the
result is C(t2)=P2.
Catmull-Rom curve in the recursion algorithm.
Considering the cubic Catmull-Rom curve. The
curve is generated by interpolating via 4 control points
P0, P1, P2, P3 and the parameters t0, t1, t2, t3
2
JST: Smart Systems and Devices
Volume , Issue , May 2022,
These results have proven that the C(t) passing through With the shorter segment, the Centripetal Catmull-
the control points and do not depend on the parameter Rom spline is similar to the Chordal Catmull-Rom
: spline. Through the above results, the Centripetal
Catmull-Rom spline is closest to the control polygon
- α = 0: Uniform parameterization than others in the complete curve. This result will
- α = 0.5: Centripetal parameterization remain with the difference control segments.
- α = 1: Chordal parameterization
3
JST: Smart Systems and Devices
Volume , Issue , May 2022,
3.1.3. The direction of the curve and the control 3.2. Applying the Catmull-Rom spline in
edge plotting the image calibration grid.
Another inconvenient feature of the chordal As mention above, the cubic Catmull-Rom
spline is easy to be affected by the direction of the spline is the continuity C1 curves. So that, a spline
control polygon. This could be observed near the short going through n control points could be plotted a series
edges. The curves with chordal parameterization are of the consecutive cubic Catmull-Rom curve
very close to shorter edges of the control polygon, this segments. Each curve segment is plotted from four
makes the curves overshoot when longer edges are consecutive control points.
adjacent to shorter ones. [5] As a result, relatively
To plot the spline, which contains n points,
minor changes in the position of a control point with a
requires (n+2) control points due to the two end points
short edge can drastically alter the shape of the curve
are not used. A curve between Pi and Pi+1 is
with chordal parameterization. This behaviour is
interpolated from the control pints Pi-1, Pi, Pi+1, Pi+2,
demonstrated in Figure 5. This not appear on the
uniform and centripetal Catmull-Rom curve. with α [1, n-1]. Combining these segments, the
continuity curve is generated, go through all the
control points.
Base on this feature, the image calibration grid is
plotted from the horizontal and vertical curve through
three steps: Generating the matrix of control points,
generating the control lines, interpolating the curve
α=0
3.2.1. Generating the matrix of control points.
Generating the matrix of the control points for the
projector frame. The matrix has m rows and n columns,
with the control points of mx1, 1xm, mxn, nxm are on
the edge of the projector frame. At the initial, the
corresponding control points in its rows are uniformly
α = 0.5 separated, corresponding with the control points on the
columns. So that, the frame is divided into the (m-
1)x(n-1) cells. From this matrix, the control points
could be moved to calibrate the curve which
interpolates from these points.
α=1 3.2.2. Generating the control lines
Fig.5. Direction of the control line and the inflection In the next step, to control, calculate the interpolation
point depends on the α (α = 0, α = 0.5, α = 1). and generate the control line corresponding with each
row, each column of the matrix.
3.1.4. The inflection points on the spline.
Considering each row, in which includes n control
In the cubic Catmull-Rom spline family, the points Pi = [xi yi]T( j = 1, n ) . To generate the Catmull-
centripetal spline tends to blend at the control points.
With the other spline, the inflection point is not Rom spline by interpolating these n control points
coincided with the control points (figure 5). This will requires adding two points at begin and the end of the
cause the difficulties when calibrating the spline in control line: P0, Pn+1. These points are required for
desirable shape. interpolating of the Catmull-Rom spline and these
points will not be shown on the control lines.
3.1.5. Conclusion
The additional points are determined by
The centripetal Catmull–Rom spline has several extrapolating:
desirable mathematical properties compared to the
original and the other types of Catmull-Rom 𝑃0 = 𝑃1 − (𝑃2 − 𝑃1 ) (8)
formulation. First, it will not form loop or self- 𝑃𝑛+1 = 𝑃𝑛 + (𝑃𝑛 − 𝑃𝑛−1 ) (9)
intersection within a curve segment. Second, cusp will Then, interpolating to get an interpolation curve go
never occur within a curve segment. Third, it follows through n points with n+2 control points. Similarly,
the control points more tightly. Therefore, the each column has m+2 control points. So that, the
Centripetal Catmull-Rom spline is the most suitable control matrix is extended to the (m+2) x (n+2).
spline to plotting the image calibration grid which is
This process is presented in the algorithm of
mentioned in below.
generating the matrix of image calibrating (Fig.6)
4
JST: Smart Systems and Devices
Volume , Issue , May 2022,
Interpolating the Ri
j=1
i:=i+1
Interpolating the point
on the side of the Cellij
Yes (Ri,Ri+1,Cj,Cj+1 )
i m
No
Generate the Column Transfer the points in
control line Cj Cellij to the control the
visualization module
Extrapolating
Cj0, Cj(m+1)
j:=j+1
Interpolating the Cj
Yes j n-1
j:=j+1 No
i:=i+1
j n Yes
No i m-1 Yes
Finish No
5
JST: Smart Systems and Devices
Volume , Issue , May 2022,
Calibration HDMI
Graphics
Simulation Projectors
card
computer Computer 1 1
Computer 3 3
connect to the projectors. The projectors are setup in
order to display on entire of the sphere surface.
The software help to manage, allow editing,
HDMI
Graphics
Simulation Projectors
calibrating the calibration grid. By observation the
card
Computer 4 4
calibration grid which is visualized on the screen, the
images from different projectors are merged.
The functions of this software are:
HDMI
Graphics
Simulation Projectors
card
SWITCH
Simulation Projectors
card
Computer 9 9 screen
HDMI Projectors
card
6
JST: Smart Systems and Devices
Volume , Issue , May 2022,
No
Finish
7
JST: Smart Systems and Devices
Volume , Issue , May 2022,
5. References
8
JST: Smart Systems and Devices
Volume , Issue , May 2022,
Reviewer 2