This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Virtual Image Correlation uncertainty

M. L. M. François 111Marc Louis Maurice François, laboratory GeM, UMR CNRS 6183, CNRS—Université de Nantes — École Centrale Nantes, 2, rue de la Houssinière BP 92208, 44322 Nantes Cedex 3, France Tel.: +33-2-51125521 [email protected]
Abstract

The Virtual Image Correlation method applies for the measurement of silhouettes boundaries with sub-pixel precision. It consists in a correlation between the image of interest and a virtual image based on a parametrized curve. Thanks to a new formulation, it is shown that the method is exact in 1D, insensitive to local curvature and to contrast variation, and that the bias induced by luminance variation can be easily corrected. Optimal value of the virtual image width, the sole parameter of the method, and optimal numerical settings are established. An estimator is proposed to assess the relevance of the user-chosen curve to describe the contour with a sub-pixel precision. Analytical formulas are given for the measurement uncertainty in both cases of noiseless and noisy images and their prediction is successfully compared to numerical tests.
Keywords: Virtual Image Correlation; Digital Image Correlation

The software ”Funambule” associated with this publication is available at
https://zenodo.org/record/3862248, DOI : 10.5281/zenodo.3862248
or, for latest version,
https://github.com/marc-l-m-francois/Funambule/releases

1 Introduction

The Virtual Image Correlation (VIC) originates from the global form of the Digital Image Correlation (DIC) method [8, 9]. However, in the VIC, the second image is an elementary and unitary virtual one which mimics the white to black gradient of the boundary and whose shape is defined from a parametrized curve. At convergence, when virtual and physical images are close as possible, the curve shape represents a measurement of the contour.

The very first version of the VIC was dedicated to open contour measurement [7]. Its extension to silhouette measurement followed [16, 13] then a numerically efficient version benefitting of close DIC developments [14]. Further work concerned various application of the method for the mechanical testings [6, 3, 5] or in medicine [10]. The major interest of the VIC is its precision, in some case better than 10310^{-3} pixels [16]. However, the present article was motivated by a need for more objective evaluation of the uncertainty, with predictive formulas.

In Sec. 2 is shown a slightly modified version of the method, in which the mean square distance between virtual and physical images is calculated in the frame of the virtual image. This gives both a slightly better precision and much simpler equations.

Section 3 is dedicated to the quantification of uncertainties. It begins by establishing a set of simplified equations, which are used at first to prove that the method is theoretically exact in 1D. The VIC requires the chosen curve family to be able to fit the contour of interest. Aiming sub-pixel precision, the simple observation of the obtained curve superposed to the silhouette is not sufficient to check this point. A signed distance is proposed, which consists in a local measurement of the silhouette in the virtual image frame. Its graph emphasis the local accuracy of the identification and its spectral analysis informs about the relevance of the chosen curve to depict the contour. The image discretization is an inevitable cause of uncertainty that leads to the ultimate accuracy of the method. An empirical law, deducted from statistics on numerical tests, is proposed to assess it. Effect of imperfect brightness and contrast are studied analytically. It is shown that contrast has no effect on the precision but that brightness induces a bias which can be suppressed by a linear correction of the image. Then, the measurement uncertainty due to image noise is quantified by a simple analytical formula. A simple graph summarizes the expected accuracy as a function of the image noise and the number of parameters of the curve.

Section 4 validates the proposed expressions of uncertainties, through statistics on old [16] and new synthetic tests. In addition to the comparisons already made (in [16]) with the Fast Marching Algorithm [17] and the Steger’s method [18], new comparisons are made here with the active contour method [11] and the recent method of Trujilo-Pino [22] which are both known for their sub-pixel precision. Tests on noisy images also emphasize the robustness of the VIC. For all synthetic images used in this article, the grey levels of the transition pixels (through which the edge passes) are calculated from the ratio of the white (background) and black (silhouette) surfaces seen by the pixel.

2 The VIC method

Refer to caption
Figure 1: Sketch of the VIC method

The silhouette of interest in image F is measured by finding the best coincidence between F and a virtual image G based on a parametrized curve 𝒞\mathcal{C} (see Fig. 1). Image F has grey levels F(X)F(\vec{X}) where X\vec{X} is the position vector of components (X1,X2)(X_{1},X_{2}) associated to the pixel frame. The virtual image G of gray levels G(X)G(\vec{X}) is a deformation of an elementary image g of grey levels g(x)g(\vec{x}) such as:

G(X)\displaystyle G(\vec{X}) =\displaystyle= g(x)\displaystyle g(\vec{x}) (1)
g(x)\displaystyle g(\vec{x}) =\displaystyle= 1+x22\displaystyle\frac{1+x_{2}}{2} (2)

where the position vector x\vec{x} has components x1[0,1]x_{1}\in[0,1] and x2[1,1]x_{2}\in[-1,1]. The linear evolution of the gray level g(x)g(\vec{x}) is chosen in order G to be roughly similar to the gray level evolution across the boundary in F. A current point X\vec{X} of G is defined from the user-chosen parametric curve 𝒞\mathcal{C} of current point Xc\vec{X}^{c} (see Fig. 2):

X(x1,x2,λp)=Xc(x1,λp)+Rx2er(x1,λp),\vec{X}(x_{1},x_{2},\lambda_{p})=\vec{X}^{c}(x_{1},\lambda_{p})+Rx_{2}\,\vec{e}_{r}(x_{1},\lambda_{p}), (3)
Refer to caption
Figure 2: Virtual image geometry (left) and grey levels (right)

where x1x_{1} is used as the curve parameter, the λp\lambda_{p} are the (researched) shape parameters and (es,er)(\vec{e}_{s},\vec{e}_{r}) are respectively the unitary tangent and normal vectors to the curve:

es\displaystyle\vec{e}_{s} =\displaystyle= Xcx1Xcx11\displaystyle\frac{\partial\vec{X}^{c}}{\partial x_{1}}\left\|\frac{\partial\vec{X}^{c}}{\partial x_{1}}\right\|^{-1} (4)
er\displaystyle\vec{e}_{r} =\displaystyle= es×ez\displaystyle\vec{e}_{s}\times\vec{e}_{z} (5)

where ×\times denotes the cross product and ez\vec{e}_{z} is the unitary vector normal to the plane. Above definition guarantees that er\vec{e}_{r} points uniformly outside any closed curve orientated positively.

The goal of the method is to find the shape parameters λp\lambda_{p} of 𝒞\mathcal{C} for which F and G are in best coincidence. As for some DIC methods [8], the mean square difference between the two images is minimized:

Ψ\displaystyle\Psi =\displaystyle= (F(X)G(X))2𝑑X1𝑑X2𝑑X1𝑑X2\displaystyle\frac{\int\int(F(\vec{X})-G(\vec{X}))^{2}dX_{1}dX_{2}}{\int\int dX_{1}dX_{2}} (6)

This expression was used in the very first version of the VIC [7, 16] in which the surface area 2RL2RL (the denominator) was constant. Neglecting the surface variation allows the use of numerically efficient DIC algorithms [14] but with a loss of accuracy. Strictly speaking, the length LL of the curve, so the area, is not constant. Furthermore, the differential surface element dX1dX2dX_{1}dX_{2} depends, by Eq. (38), upon the curvature and neglecting it creates a slight but unwanted line tension effect. The proposed minimization function is expressed in the frame of the virtual image:

ψ\displaystyle\psi =\displaystyle= (f(x)g(x))2𝑑x1𝑑x2𝑑x1𝑑x2,\displaystyle\frac{\int\int(f(\vec{x})-g(\vec{x}))^{2}dx_{1}dx_{2}}{\int\int dx_{1}dx_{2}}, (7)

in which f(x)=F(X)f(\vec{x})=F(\vec{X}). The denominator represents the constant surface area of g (of value 2) and the differential surface element dx1dx2dx_{1}dx_{2} is independent of the curvature. The minimization of Ψ\Psi with respect to λp\lambda_{p} is achieved by using a Newton scheme, solving iteratively the N×NN\times N linear system:

2ψλpλqΔλq=ψλp\frac{\partial^{2}\psi}{\partial\lambda_{p}\partial\lambda_{q}}\Delta\lambda_{q}=-\frac{\partial\psi}{\partial\lambda_{p}} (8)

where Δλq\Delta\lambda_{q} is the corrector of the current values of the NN curve parameters λq\lambda_{q} and where:

2ψ(λp)\displaystyle 2\psi(\lambda_{p}) =\displaystyle= 1101(F(X(x1,x2,λp))g(x2))2𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(F(\vec{X}(x_{1},x_{2},\lambda_{p}))-g(x_{2})\right)^{2}dx_{1}dx_{2} (9)
ψλp\displaystyle\frac{\partial\psi}{\partial\lambda_{p}} =\displaystyle= 1101(FXXλp)(fg)𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{p}}\right)(f-g)dx_{1}dx_{2} (10)
2ψλpλq\displaystyle\frac{\partial^{2}\psi}{\partial\lambda_{p}\partial\lambda_{q}} =\displaystyle= 1101[(Xλp2FX2Xλq+FX2Xλpλq)(fg)+\displaystyle\int_{-1}^{1}\int_{0}^{1}\left[\left(\frac{\partial\vec{X}}{\partial\lambda_{p}}\cdot\frac{\partial^{2}F}{\partial\vec{X}^{2}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{q}}+\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial^{2}\vec{X}}{\partial\lambda_{p}\partial\lambda_{q}}\right)(f-g)\right.+ (11)
(FXXλp)(FXXλq)]dx1dx2\displaystyle\quad\quad\left.\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{p}}\right)\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{q}}\right)\right]dx_{1}dx_{2}

Annex A shows that it is possible, under some reasonable assumptions, to take into account only the last term (as done in DIC [8]) thus:

2ψλpλq\displaystyle\frac{\partial^{2}\psi}{\partial\lambda_{p}\partial\lambda_{q}} \displaystyle\simeq 1101(FXXλp)(FXXλq)𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{p}}\right)\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{q}}\right)dx_{1}dx_{2} (12)

in which, from Eq. (3):

Xλp\displaystyle\frac{\partial\vec{X}}{\partial\lambda_{p}} =\displaystyle= XcλpRx2Xcx11(2Xcλpx1er)es\displaystyle\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}-Rx_{2}\left\|\frac{\partial\vec{X}^{c}}{\partial x_{1}}\right\|^{-1}\left(\frac{\partial^{2}\vec{X}^{c}}{\partial\lambda_{p}\partial x_{1}}\cdot\vec{e}_{r}\right)\vec{e}_{s} (13)

The derivatives of the curve points Xc\vec{X}^{c} are supposed either analytically or numerically known. Curvilinear abscissa ss and curvature ρ\rho are:

s\displaystyle s =\displaystyle= 0x1Xcξ1𝑑ξ1\displaystyle\int_{0}^{x_{1}}\left\|\frac{\partial\vec{X}^{c}}{\partial\xi_{1}}\right\|d\xi_{1} (14)
ρ\displaystyle\rho =\displaystyle= (2Xcx12er)Xcx12\displaystyle-\left(\frac{\partial^{2}\vec{X}^{c}}{\partial x_{1}^{2}}\cdot\vec{e}_{r}\right)\left\|\frac{\partial\vec{X}^{c}}{\partial x_{1}}\right\|^{-2} (15)

and L=s(1)L=s(1) is the overall curve length. If the non-overlapping condition:

|ρ|R<1|\rho|R<1 (16)

is not fulfilled, the center of the osculating circle of 𝒞\mathcal{C} of radius 1/|ρ|1/|\rho| is inside the virtual image G, thus some points in the vicinity of this center are defined at least twice. However, in a practical point of view, experience shows that it is possible to overcome this second condition as soon as the sharp corners of 𝒞\mathcal{C} do not exceed the right angle because sharper angles put in coincidence inner black points of G with outer white points of F. At last, from Eq. (13) the curve must not have any stationary points:

Xcx1>0\left\|\frac{\partial\vec{X}^{c}}{\partial x_{1}}\right\|>0 (17)

3 Uncertainty of the VIC measurement

3.1 Set of simplified equations in ideal cases

In order to study the precision of the method, the above set of equation is simplified hereafter. At first we suppose that, close to the solution, F(𝐗)f(x2)F(\mathbf{X})\simeq f(x_{2}) (as it is the case for gg, see Eqs. (1, 2)) thus:

FX\displaystyle\frac{\partial F}{\partial\vec{X}} =\displaystyle= fRer\displaystyle\frac{f^{\prime}}{R}\vec{e}_{r} (18)

Together with Eq. (13), this allows the separation of variables in Eq. (10):

ψλp=1R01Xcλper𝑑x111f(fg)𝑑x2\frac{\partial\psi}{\partial\lambda_{p}}=\frac{1}{R}\int_{0}^{1}\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\,dx_{1}\int_{-1}^{1}f^{\prime}(f-g)dx_{2} (19)

The current term of the first integral is null if Xc/λp{\partial\vec{X}^{c}}/{\partial\lambda_{p}} is everywhere collinear to es\vec{e}_{s}, corresponding to a tangential motion which lets the curve unchanged: such case has to be avoided when choosing a curve equation. Thus, at convergence of the Newton scheme, when ψ/λp=0{\partial\psi}/{\partial\lambda_{p}}=0:

11f(fg)𝑑x2=0\int_{-1}^{1}f^{\prime}(f-g)dx_{2}=0 (20)

At last, if the virtual image borders lie one in the white background and one in the black silhouette: f(1)=0f(-1)=0 and f(1)=1f(1)=1, an integration by parts gives:

1211(f(x2)12)𝑑x2=0\frac{1}{2}\int_{-1}^{1}\left(f(x_{2})-\frac{1}{2}\right)dx_{2}=0 (21)

which shows that, at convergence, the mean value of ff is 1/21/2.

3.2 Exact 1D discrete measurement

Refer to caption
Figure 3: 1D VIC. Luminance F¯\bar{F} (red), digital image and its linear interpolation FF (blue), virtual image GG at best correlation (green)

Let F¯(X)=H(XX0)\bar{F}(X)=H(X-X_{0}), where HH is the Heavyside distribution, be the physical luminance of a 1D silhouette (Fig. 3). Supposing ideal sensor (linear and homogenous) and optics, the ithi^{\mathrm{th}} pixel returns the value i1/2i+1/2F¯𝑑X\int_{i-1/2}^{i+1/2}\bar{F}dX (blue dots). In 1D, the curve 𝒞\mathcal{C} is degenerated into a point (x1x_{1} is meaningless) whose parameterized equation is simply chosen as Xc=λX^{c}=\lambda and the mapping (Eq. 3) reduces to X=λ+Rx2X=\lambda+Rx_{2}. Due to the absence of curvature, expressions Ψ\Psi (Eq. 6) and ψ\psi (Eq. 7) are equivalent thus Eq. (21) corresponds to:

12RλRλ+R(F(X)12)𝑑X=0,\frac{1}{2R}\int_{\lambda-R}^{\lambda+R}\left(F(X)-\frac{1}{2}\right)dX=0, (22)

if f(1)=F(λR)=0f(-1)=F(\lambda-R)=0 and f(1)=F(λ+R)=1f(1)=F(\lambda+R)=1, i.e. if the support of GG is wide enough: λR<1\lambda-R<-1 and λ+R>1\lambda+R>1. Because 0.5<λ<0.5-0.5<\lambda<0.5, this leads to impose R>1.5R>1.5. Solving this integral with the analytical expression F(X)F(X) of the linear interpolation (thick blue segments in Fig. 3) gives straightforwardly λ=X0\lambda=X_{0}. This shows that the VIC measurement XcX^{c} corresponds exactly to the prescribed edge location X0X_{0}, whatever X0X_{0} and R>1.5R>1.5.

3.3 Uncertainty due to curve mismatch and local correlation indicator

The VIC method requires the user-chosen curve 𝒞\mathcal{C} to be able to fit the contour of interest. Fig. 4 shows that, if the curve matches, f appears as invariant along x1x_{1} (very similar to g) but shows waviness in the opposite case. However, a more objective indicator is necessary to quantify the quality of the identification. A straightforward idea consists in using ψ/x1\partial\psi/\partial x_{1} as local correlation function but, g being not physical and RR being user chosen, this function only brings a qualitative information and does dot distinguish if the curve is inside or outside the contour.

Refer to caption

   Refer to caption

Refer to caption

   Refer to caption

Figure 4: Images F (left) and f (right) of a small disc identified by a square (top) and a circle (bottom). Pixel edges (blue), computational points (red) and correlation indicator μ\mu (green)

From Eq. (21), we define the signed distance:

μ(x1)=11(12f(x1,x2))𝑑x2\mu(x_{1})=\int_{-1}^{1}\left(\frac{1}{2}-f(x_{1},x_{2})\right)dx_{2} (23)

This one is defined in the frame x\vec{x} and corresponds to μR\mu R in the pixel frame X\vec{X}. Fig. 4 shows that μ(x1)\mu(x_{1}) represents a local identification of the boundary.

Refer to caption

a)

Refer to caption

b)

Refer to caption

c)

Refer to caption

d)

Figure 5: FFT of RμR\mu for a 100 pixel radius disc with (a) σ0=0\sigma_{0}=0 and 10 points B-Spline, (b) σ0=0.1\sigma_{0}=0.1 and 10 points B-Spline, (c) σ0=0\sigma_{0}=0 and circle, (d) σ0=0.1\sigma_{0}=0.1 and circle.

Fig. 5 is related to the well-know impossibility for a B-Spline to depict a circle [12]. When using a 10 points B-Spline, a peak of magnitude 0.05\simeq 0.05 pixel at wavelength 6363 pixels (L/10\simeq L/10 pixel) is visible in the FFT of RμR\mu. It reveals a periodic oscillation of the curve from inside to outside of the exact circle in between the ten (regularly spaced) control points, which would be hard to see on a representation such has Fig. 4. Cases with noisy images lead to an additional noise spectrum whose mean amplitude is close to the estimation of Eq. (32) of 21×10321\times 10^{-3} for the B-Spline and 8×1038\times 10^{-3} for the circle.

Curve mismatching induces long wave oscillations of RμR\mu which are revealed by a spectral analysis as long as they are not hidden by image noise. The acceptable precision, i.e. the magnitude of the maximum peak, remains the the user’s decision.

3.4 Uncertainty associated to discretization

If the VIC has been shown in Sec. 3.2 to be theoretically exact in 1D, things are more complicated in 2D. The pixel grid is used as computational frame in most of image analysis methods, including DIC and some versions of VIC using Ψ\Psi [14]. However, many tests showed that computing on a regular discretization of (x1,x2)(x_{1},x_{2}) (see Fig. 4) provides better precision, as soon as the distance between two corresponding points (X1,X2)(X_{1},X_{2}) is less than 1/31/3 pixel [16].

The values of F, required for Eq. (7) at these non integer values are obtained by interpolation. Another series of tests showed that the simplest and fastest linear interpolation gives equivalent or even better precision than cubic or B-spline interpolation. This is different from DIC, but in accordance with the analytical analysis in Sec. 3.2.

Refer to caption
Figure 6: Line segment test with small angle of inclination

In Sec. 3.2 we showed that RR should be greater than 1.5 pixel. In order to set the optimal value of RR for 2D images, we proceed to tests on synthetic images of linear edges identified with a line segment (Fig. 6). To address any cases, the angle θ\theta from X1X_{1} to the edge is varied from 0 to π/4\pi/4, the ordinate of its midpoint is varied of ΔX02[0,1[\Delta X_{02}\in[0,1[ pixel and the length L=100L=100 of the segment is varied of ΔL[0,1[\Delta L\in[0,1[ pixel. Ten levels are used for each variation. The mean mdm_{d} and the standard deviation σd\sigma_{d} of the distance δ(x1)\delta(x_{1}) between identified and exact segments are computed. In average, setting R=1.5R=1.5 gives md=4.09×105m_{d}=-4.09\times 10^{-5} and σd=3.76×104\sigma_{d}=3.76\times 10^{-4} and setting R=2R=2 gives md=5.99×105m_{d}=-5.99\times 10^{-5}, σd=7.92×104\sigma_{d}=7.92\times 10^{-4}.

However Fig. 7 shows that choosing R=2R=2 eliminates pathologic cases of small angles (such as shown by Fig. 6). Setting other (especially larger) values for RR did not provide any advantage. As a consequence, R=2R=2 appears to be the optimal value for the VIC.

Refer to captionRefer to caption
Refer to caption
Refer to caption
Figure 7: Statistics on the line segment test at small angles for R=1.5R=1.5 (top) and R=2R=2 (bottom)

In order to get an estimator of the uncertainty associated to the sole effect of discretization, similar line segment tests have been realized, varying the length LL over two decades.

Refer to caption
Refer to caption
Figure 8: Statistics of the line segment test with variable length

Fig. 8 shows that the mean distance mdm_{d} is weak for all LL and that the standard deviation σd\sigma_{d} is very close to its linear regression σd= 0.0885/L\sigma_{d}= {0.0885}/{L} (blue line on Fig. 8). The proposed empirical rule:

σd N20L\sigma_{d}\simeq \frac{N}{20L} (24)

corresponds to the red line. The role of the number of curve parameters NN in this equation, of two in these tests (ordinate and angle), is supposed to be equivalent to the one it has in Eq. (32).

3.5 Uncertainty associated to brightness and contrast defects

At ideal, the silhouette is black and the background is white. However, real images may have contrast and luminance deviations. From Sec. 3.2, the average of F(X)F(X) over all possible X0[0.5,0.5]X_{0}\in[-0.5,0.5] is linear: <F>=(X+1)/2<F>=({X+1})/{2}. Thus, for this analytical study, we suppose ff to be the continuous linear piecewise function (see Fig. 9):

x2<δ1R\displaystyle x_{2}<\frac{\delta-1}{R} \displaystyle\Longrightarrow f(x2)=b+1a2\displaystyle f(x_{2})=b+\frac{1-a}{2}
δ1Rx2<δ+1R\displaystyle\frac{\delta-1}{R}\leq x_{2}<\frac{\delta+1}{R} \displaystyle\Longrightarrow f(x2)=aRx2δ2+b+12\displaystyle f(x_{2})=a\frac{Rx_{2}-\delta}{2}+b+\frac{1}{2}
δ+1Rx2\displaystyle\frac{\delta+1}{R}\leq x_{2} \displaystyle\Longrightarrow f(x2)=b+1+a2\displaystyle f(x_{2})=b+\frac{1+a}{2} (25)

where aa is the amplitude (contrast), bb the bias (luminance), δ/R\delta/R the location of the researched edge. The origin of the virtual image at x2=0x_{2}=0 defines the VIC measurement thus δ/R\delta/R (in the frame x\vec{x}) or δ\delta (in the pixel frame X\vec{X}) is the measurement error.

Refer to caption
Figure 9: Study of amplitude aa and bias bb effects

Used together with Eq. (20), which is fulfilled at convergence, above expressions give:

δ=2Rb\displaystyle\delta=2Rb (26)

As a consequence, the contrast aa has no influence on the precision but a luminance variation bb induces a bias δ\delta in the measurement. In a practical point of view, this is easily annulated during computation by a linear correction of the gray levels of F. Similar calculus shows that non linear image corrections should be avoided because they induce a bias. In particular, best results will be obtained with CCD sensors with good linearity.

3.6 Uncertainty associated to image noise

Inevitable image noise leads to uncertainty in the VIC measurement. We suppose now that each pixel of integer coordinates (i,j)(i,j) is the sum of an exact value FijF_{ij} and a gaussian noise NijN_{ij}, spatially uncorrelated, of zero mean and of standard deviation σ(Nij)=σ0\sigma(N_{ij})=\sigma_{0}. With the hypothesis of Sec. 3.1, we show in Annex B that:

σ(ψλp)σ0R2RL01(Xcλper)2𝑑x1\sigma\left(\frac{\partial\psi}{\partial\lambda_{p}}\right)\simeq\frac{\sigma_{0}}{R\sqrt{2RL}}\sqrt{\int_{0}^{1}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)^{2}\,dx_{1}} (27)

From the Newton scheme (Eq. 8), this term is associated to the standard deviation of each shape parameter by:

σ2(ψλp)=(2ψλpλq)2σ2(λq)\sigma^{2}\left(\frac{\partial\psi}{\partial\lambda_{p}}\right)=\left(\frac{\partial^{2}\psi}{\partial\lambda_{p}\partial\lambda_{q}}\right)^{2}\sigma^{2}(\lambda_{q}) (28)

The average σn\sigma_{n} of the standard deviation of the distance Xcer\vec{X}^{c}\cdot\vec{e}_{r} from the measurement to the noiseless solution is:

σn2=01σ2(Xcer)𝑑x1\sigma_{n}^{2}=\int_{0}^{1}\sigma^{2}\left(\vec{X}^{c}\cdot\vec{e}_{r}\right)\,dx_{1} (29)

From dXc=(Xc/λq)dλqd\vec{X}^{c}=({\partial\vec{X}^{c}}/{\partial\lambda_{q}})\,d\lambda_{q} we deduce:

σ2(Xcer)=q(Xcλqer)2σ2(λq)\sigma^{2}\left(\vec{X}^{c}\cdot\vec{e}_{r}\right)=\sum_{q}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{q}}\cdot\vec{e}_{r}\right)^{2}\sigma^{2}(\lambda_{q}) (30)

Gathering previous expressions gives σn2\sigma_{n}^{2}. However this complex expression has to be computed in each cases. A simpler approximation is obtained by supposing at first a perfectly contrasted image with a=1a=1 and b=0b=0. Eq. (25) and Eq. (12) give:

2ψλpλq=12R01(Xcλper)(Xcλqer)𝑑x1\frac{\partial^{2}\psi}{\partial\lambda_{p}\partial\lambda_{q}}=\frac{1}{2R}\int_{0}^{1}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{q}}\cdot\vec{e}_{r}\right)\,dx_{1} (31)

At second we retain only the diagonal terms of this matrix, which corresponds to consider that each shape variable acts on a separate part of the curve. This gives a simple approximation of the VIC standard deviation due to the image noise:

σn=σ02NRL\sigma_{n}=\sigma_{0}\sqrt{\frac{2N}{RL}} (32)

The proportionality between σn\sigma_{n} and the image noise σ0\sigma_{0} is common with DIC uncertainty analysis [15, 20, 19, 4]. Doubling the image resolution doubles LL thus divides σn\sigma_{n} by 2\sqrt{2}. The uncertainty σn\sigma_{n} is proportional to N\sqrt{N}: this weak dependance allows the user to retain complex curve families. This formula erroneously suggest the use of large RR but the calculus is valid for the active part of the virtual image thus one may consider R2R\leq 2. The quantification noise, of classical expression σ0q=(2nb12)1\sigma_{0q}=(2^{nb}\sqrt{12})^{-1} where nbnb is the bit depth, can also be taken into account as an additional image noise.

3.7 Summary

Refer to caption
Figure 10: Uncertainty of the VIC method, for R=2R=2

Fig. 10 shows the uncertainty of the method, according to expressions of σd\sigma_{d} (Eq. 24) and σn\sigma_{n} (Eq. 32). It shows in particular that the irreducible uncertainty σd\sigma_{d}, associated to discretization, can only be attained with low image noise σ0\sigma_{0} and large curve support L/NL/N. Of course this graph is valid only in absence of curve fitting error.

4 Validation and comparison of the VIC uncertainty

4.1 Validation of the proposed expressions

In table 1 we compare predicted and measured uncertainties on various tests. Cases C1 to C4 correspond to numerical tests onto a 401×401401\times 401 pixels image of a spiral [16]. Cases D1 to D3 refer to synthetic images of discs of average radii respectively of 3 (Fig. 4), 10, 100 pixels whose center and radius are randomly varied over 1 pixel, over 100 trials. Cases D1{}_{1}^{\prime} to D3{}_{3}^{\prime} are similar, but with an additive gaussian image noise σ0\sigma_{0}. All images are in 8 bits. The standard deviation associated to discretization σd\sigma_{d} is obtain by Eq. (24) and the one associated to image noise σn\sigma_{n} by Eq. (32). The quantification noise σ0q\sigma_{0q} is took into account in σn\sigma_{n}.

Table 1: Predicted (σd\sigma_{d}, σn\sigma_{n}) and measured (σ\sigma) standard deviations. Mesured mean (mm)
case RR LL NN σ0\sigma_{0} σd×103\sigma_{d}\times 10^{3} σn×103\sigma_{n}\times 10^{3} σ×103\sigma\times 10^{3} m×103m\times 10^{3}
C1 11 12361236 2020 0%0\% 0.8090.809 0.200.20 99
C2 11 12361236 2020 30%30\% 0.8090.809 54.254.2 5454
C3 11 12361236 2020 50%50\% 0.8090.809 90.190.1 8585
C4 11 12361236 2020 90%90\% 0.8090.809 163163 180180
D1 22 18.818.8 33 0%0\% 7.967.96 8.418.41 44 1.71-1.71
D1{}_{1}^{\prime} 22 18.818.8 33 10%10\% 7.967.96 48.348.3 5656 2.122.12
D2 22 62.862.8 33 0%0\% 2.392.39 2.632.63 0.960.96 0.21-0.21
D2{}_{2}^{\prime} 22 62.862.8 33 10%10\% 2.392.39 24.524.5 3030 0.260.26
D3 22 628628 33 0%0\% 0.240.24 0.320.32 0.240.24 0.000.00
D3{}_{3}^{\prime} 22 628628 33 10%10\% 0.240.24 7.237.23 88 0.860.86

One observes that the predicted values of max(σd,σn)\mathrm{max}(\sigma_{d},\sigma_{n}) are in good agreement with measured ones σ\sigma. The sole exception is the case C1 for which a curve fitting error is present, the 10 control points of the B-Spline being not enough to describe the spiral at this level of precision.

4.2 Comparison between the VIC and other methods uncertainties

The VIC method has been already successfully compared to Fast Marching Algorithm [17] and Steger’s method [18] in earlier publication [16]. Since this article, new methods also claimed for sub-pixel precision. Among them we retained the work of Trujilo-Pino (TP) [22, 21] which, based on an area estimate, is in some way close to the estimator μ\mu (Eq. 29). For reference, we retained the well known Active Contours (AC) method [11].

Table 2: Measured uncertainty for active contours (AC) and Trujilo-Pino’s (TP) methods
AC TP
case σ×103\sigma\times 10^{3} m×103m\times 10^{3} σ×103\sigma\times 10^{3} m×103m\times 10^{3}
D1 4444 93-93 66 3.943.94
D1{}_{1}^{\prime} 7575 110-110 227227 7.087.08
D2 3030 31-31 2.042.04 0.12-0.12
D2{}_{2}^{\prime} 7171 35-35 231231 2.18-2.18
D3 2727 4.52-4.52 1.951.95 0.010.01
D3{}_{3}^{\prime} 6969 4.59-4.59 236236 1.551.55

Table 2 shows the results obtained for the circular disc statistical study. With respect to TP method, the VIC (table 1) offers a gain in σ\sigma which increases with L/NL/N. In the realistic case D3, with L/N200L/N\simeq 200 pixels per curve parameter, the VIC is approximatively 6 times more precise than the TP method. The AC method gives worse results but still identifies a continuous contour in noisy images, on the contrary of TP method which required to remove aberrants points (farther than 0.5 pixel). Both TP and AC methods, like the majority of the existing contour detection methods, are local ones. On the contrary, the VIC benefits of the regularization associated to the curve 𝒞\mathcal{C}, whose effect on the precision, from Eqs. (24, 32), increases with the curve length.

5 Conclusions

With a reliable expression of the uncertainty and a tool to estimate the relevance of the chosen curve family, the Virtual Image Correlation method has now reached maturity. This article gives it a clarified theoretical framework and the sole parameter of the method, the virtual image width, is now fixed.

Relative interests between local and global methods are subjects of endless debates in the DIC community [1]. As expected, the VIC has the same advantages as the global DIC: accuracy and robustness to noise, but also shares its disadvantages: the necessity to choose an a priori field (DIC) or curve (VIC). Furthermore the given measure does not consist in a set of pixels but in a continuous curve defined from a reduced set of shape parameters. The initialization step required for the VIC can be helped by temporarily setting a wide virtual image width RR or by using one of the many existing detection method, for example the robust Active Contours method. Remaining possible ameliorations of the VIC may consist in faster computational strategies and some work remain to be done in 3D.

The field of applications is wide, especially in experimental mechanics. The VIC can be used to measure object boundaries [6, 10], the shape of elongated objects (beam, trusses…) [3] and possibly compare these curves between free and strained states. The line of interest can also be a 2D [5] or 3D [14] crack or a physical front (chemical, thermal, hydric…) [7]. Recent developments concern the use of the VIC to improve the DIC’s precision close to the object borders [2].

Appendix A Relative magnitude of major terms

The relative magnitude of the terms in Eq. (11) are compared together in order to justify the use of the simplified Eq. (12). We suppose that, close to solution, F(𝐗)f(x2)F(\mathbf{X})\simeq f(x_{2}). If ρR\rho\ll R, Eq. (18) can be expressed as:

2FX2\displaystyle\frac{\partial^{2}F}{\partial\vec{X}^{2}} \displaystyle\simeq f′′(x2)R2erer\displaystyle\frac{f^{\prime\prime}(x_{2})}{R^{2}}\vec{e}_{r}\otimes\vec{e}_{r} (33)

where \otimes denotes the dyadic (tensor) product. Then, the terms of interest in Eqs. (10, 11) can be rewritten in a separate form:

I2\displaystyle I_{2} =\displaystyle= 1101(Xλp2FX2Xλq)(fg)𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(\frac{\partial\vec{X}}{\partial\lambda_{p}}\cdot\frac{\partial^{2}F}{\partial\vec{X}^{2}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{q}}\right)(f-g)dx_{1}dx_{2} (34)
\displaystyle\simeq 1R201(Xcλper)(Xcλqer)𝑑x111f′′(fg)𝑑x2\displaystyle\frac{1}{R^{2}}\int_{0}^{1}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{q}}\cdot\vec{e}_{r}\right)\,dx_{1}\quad\int_{-1}^{1}f^{\prime\prime}(f-g)dx_{2}
I3\displaystyle I_{3} =\displaystyle= 1101(FX2Xλpλq)(fg)𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial^{2}\vec{X}}{\partial\lambda_{p}\partial\lambda_{q}}\right)(f-g)dx_{1}dx_{2} (35)
\displaystyle\simeq 01(2Xcλpx1er)(2Xcλqx1er)𝑑x111x2f(fg)𝑑x2\displaystyle\int_{0}^{1}\left(\frac{\partial^{2}\vec{X}^{c}}{\partial\lambda_{p}\partial x_{1}}\cdot\vec{e}_{r}\right)\left(\frac{\partial^{2}\vec{X}^{c}}{\partial\lambda_{q}\partial x_{1}}\cdot\vec{e}_{r}\right)dx_{1}\quad\int_{-1}^{1}x_{2}f^{\prime}(f-g)\,dx_{2}
I4\displaystyle I_{4} =\displaystyle= 1101(FXXλp)(FXXλq)𝑑x1𝑑x2\displaystyle\int_{-1}^{1}\int_{0}^{1}\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{p}}\right)\left(\frac{\partial F}{\partial\vec{X}}\cdot\frac{\partial\vec{X}}{\partial\lambda_{q}}\right)dx_{1}dx_{2} (36)
=\displaystyle= 1R201(Xcλper)(Xcλqer)𝑑x111(f)2𝑑x2\displaystyle\frac{1}{R^{2}}\int_{0}^{1}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{q}}\cdot\vec{e}_{r}\right)dx_{1}\quad\int_{-1}^{1}(f^{\prime})^{2}\,dx_{2}
Refer to caption
Figure 11: Ratio |i4/i3||i_{4}/i_{3}|

Integrals over x2x_{2} (i2,i3,i4)(i_{2},i_{3},i_{4}), in correspondance with (I2,I3,I4)(I_{2},I_{3},I_{4}), depend upon g(x2)g(x_{2}) (Eq. 2) and f(x2)f(x_{2}). According to Eq. (25), in an ideal case a=1a=1, b=0b=0 and δ=0\delta=0, f(x2)=(1+Rx2)/2f(x_{2})=(1+Rx_{2})/2 thus: i2=0i_{2}=0, i3=(R1)/6R2i_{3}=(R-1)/6R^{2} if R>1R>1 or i3=R(R1)/6i_{3}=R(R-1)/6 if R<1R<1 and i4=1/2i_{4}=1/2 if R>1R>1 or i4=R2/2i_{4}=R^{2}/2 else. Fig. 11 shows that i3i4i_{3}\ll i_{4} as soon as R>1R>1, i.e as soon as the virtual image width is wide enough to cover the black to white transition in F. This result justifies the simplification from Eqs. (11, 12), as soon as the integrals over x1x_{1} have comparable magnitudes.

Appendix B Intermediate calculations on the effet of image noise

Hypotheses of Sec. 3.1, Eqs. (19) and (21) lead to:

ψλp=12R0111Xcλper(f(x2)12)𝑑x1𝑑x2=0\frac{\partial\psi}{\partial\lambda_{p}}=\frac{1}{2R}\int_{0}^{1}\int_{-1}^{1}\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\,\left(f(x_{2})-\frac{1}{2}\right)dx_{1}dx_{2}=0 (37)

Eqs. (3 to 15) give the differential surface element in the frame X\vec{X}:

dX=(Xcx1+ρRx2Xcx1es)dx1+Rdx2erd\vec{X}=\left(\frac{\partial\vec{X}^{c}}{\partial x_{1}}+\rho Rx_{2}\left\|\frac{\partial\vec{X}^{c}}{\partial x_{1}}\right\|\vec{e}_{s}\right)dx_{1}+Rdx_{2}\,\vec{e}_{r} (38)

Supposing a weak curvature |ρ|R1|\rho|R\ll 1 we obtain:

dX1dX2RLdx1dx2dX_{1}dX_{2}\simeq RLdx_{1}dx_{2} (39)

which gives the correspondance between the virtual image surfaces S=2RLS=2RL in the frame X\vec{X} and s=2s=2 in the frame x\vec{x}. In the pixel frame, Eq. (37) corresponds to:

ψλp1Rnij(Xcλper)ij(Fij+Nij12)\frac{\partial\psi}{\partial\lambda_{p}}\simeq\frac{1}{Rn}\sum_{ij}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)_{ij}\left(F_{ij}+N_{ij}-\frac{1}{2}\right) (40)

where nn is the number of pixels involved in the virtual image calculus thus n2RLn\simeq 2RL (the virtual image surface). From elementary statistics, we obtain the standard deviation:

σ(ψλp)σ02LR2ij(Xcλper)ij2\sigma\left(\frac{\partial\psi}{\partial\lambda_{p}}\right)\simeq\frac{\sigma_{0}}{2LR^{2}}\sqrt{\sum_{ij}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\cdot\vec{e}_{r}\right)_{ij}^{2}} (41)

and Eq. (27) is deduced from this equation and the following correspondance between continuous and discrete expressions:

ij(Xcλp)22RL01(Xcλp)2𝑑x1,\sum_{ij}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\right)^{2}\simeq 2RL\int_{0}^{1}\left(\frac{\partial\vec{X}^{c}}{\partial\lambda_{p}}\right)^{2}dx_{1}, (42)

References

  • [1] Subset-based local vs. finite element-based global digital image correlation: A comparison study. Theoretical and Applied Mechanics Letters, 6(5):200–208, 2016.
  • [2] Maxime Baconnais, Julien Réthoré, and Marc François. Improvement of the digital image correlation close to the object borders. Strain (proposed).
  • [3] Alexis Bloch. Expérimentation et modélisation du comportement des structures gonflables complexes sous chargement climatique aléatoire. PhD thesis, Université de Nantes, 2015.
  • [4] M. Bornert, P. Doumalin, J.-C. Dupré, C. Poilâne, L. Robert, E. Toussaint, and B. Wattrisse. Assessment of digital image correlation measurement accuracy in the ultimate error regime: Improved models of systematic and random errors. Experimental Mechanics, 58(1):33–48, 2018.
  • [5] Marc Louis Maurice François. Monitoring of debonding or cracking in bending tests by virtual image correlation. In A. Chabot, W.G. Buttlar, E.V. Dave, C. Petit, and G. Tebaldi, editors, 8th RILEM Int. Conf. on Mechanisms on Cracking and Debonding in Pavements (MCD2016), Nantes, pages 739–748. Springer, 7-9 juin 2016.
  • [6] Marc Louis Maurice François, Alexis Bloch, and Jean-Christophe Thomas. Metrology of contours by the virtual image correlation technique. In SEM, editor, Advancement of Optical Methods in Experimental Mechanics, volume 3, SEM 2015 Annual Conference and Exposition on Experimental and Applied Mechanics,, pages 239–246, Costa-Mesa, USA, 8–11 june 2015. SEM, Springer.
  • [7] Marc Louis Maurice François, Benoit Semin, and Harold Auradou. Identification of the shape of curvilinear beams and fibers. Applied Mechanics and Materials, 24-25:359–364, 2010.
  • [8] François Hild and Stéphane Roux. Digital image correlation: from displacement measurement to identification of elastic properties - a review. Strain, 42(2):69–80, 2006.
  • [9] François Hild and Stéphane Roux. Measuring stress intensity factors with a camera: integrated digital image correlation (I-DIC). Comptes Rendus de Mécanique, 334:8–12, 2006.
  • [10] Zhifan Jiang, Jean-François Witz, Pauline Lecomte-Grosbras, Jérémie Dequidt, Christian Duriez, Michel Cosson, Stéphane Cotin, and Mathias Brieu. B-spline based multi-organ detection in magnetic resonance imaging. Strain, 51:235–247, 2015.
  • [11] Shawn Lankton. Active contour segmentation. MATLAB Central File Exchange.
  • [12] Leslie Piegl and Wayne Tiller. A menagerie of rational B-spline circles. IEEE Computer Graphics and Applications, 9(5):48–56, 1989.
  • [13] Julien Réthoré and Marc Louis Maurice François. Corrélation d’images pour la détection de contour. In Actes du 20e Congrès Français de Mécanique, Besançon, août 2011.
  • [14] Julien Réthoré and Marc Louis Maurice François. Curve and boundaries measurement using B-splines and virtual images. Optics and Lasers in Engineering, 52:145–155, 2013.
  • [15] Stéphane Roux and François Hild. Stress intensity factor measurements from digital image correlation: post-processing and integrated approaches. International Journal of Fracture, 140:141–157, 2006.
  • [16] Benoit Semin, Harold Auradou, and Marc Louis Maurice François. Accurate measurement of curvilinear shapes by virtual image correlation. The European physical journal applied physics, 56:1–10, October 2011.
  • [17] J.A. Sethian. Level Set Methods and Fast Marching Methods. Cambridge University Press, 1998.
  • [18] C. Steger. An unbiased detector of curvilinear structures. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(2):113–125, 1998.
  • [19] Yong Su, Qingchuan Zhang, Xiaohai Xu, and Zeren Gao. Quality assessment of speckle patterns for DIC by consideration of both systematic errors and random errors. Optics and Lasers in Engineering, 86:132–142, 2016.
  • [20] Michael A. Sutton, Jean-José Orteu, and Hubert W. Schreier. Image Correlation for Shape, Motion and Deformation Measurements. Basic Concepts, Theory and Applications. Springer, 2009.
  • [21] Agustín Trujillo-Pino. Accurate subpixel edge location. MATLAB Central File Exchange.
  • [22] Agustín Trujillo-Pino, Karl Krissian, Miguel Alemán-Flores, and Daniel Santana-Cedrés. Accurate subpixel edge location based on partial area effect. Image and Vision Computing, 31:72–90, 2013.