Skip to main content
Log in

Equiareal Shape-from-Template

  • Published:
Journal of Mathematical Imaging and Vision Aims and scope Submit manuscript

Abstract

This paper studies the 3D reconstruction of a deformable surface from a single image and a reference surface, known as the template. This problem is known as Shape-from-Template and has been recently shown to be well-posed for isometric deformations, for which the surface bends without altering geodesics. This paper studies the case of equiareal deformations. They are elastic deformations where the local area is preserved and thus include isometry as a special case. Elastic deformations have been studied before in Shape-from-Template, yet no theoretical results were given on the existence or uniqueness of solutions. The equiareal model is much more widely applicable than isometry. This paper brings Monge’s theory, widely used for studying the solutions of nonlinear first-order PDEs, to the field of 3D reconstruction. It uses this theory to establish a theoretical framework for equiareal Shape-from-Template and answers the important question of whether it is possible to reconstruct a surface exactly with a much weaker prior than isometry. We prove that equiareal Shape-from-Template has a maximum of two local solutions sufficiently near an initial curve that lies on the surface. In addition, we propose an analytical reconstruction algorithm that can recover the multiple solutions. Our algorithm uses standard numerical tools for ODEs. We use the perspective camera model and give reconstruction results with both synthetic and real examples.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Notes

  1. A strip is a curve and its normal field on the surface.

References

  1. Hartley, R., Zisserman, A.: Multiple View Geometry in Computer Vision. Cambridge University Press, Cambridge (2003)

    MATH  Google Scholar 

  2. Maier-Hein, L., Groch, A., Bartoli, A., Bodenstedt, S., Boissonnat, G., Chang, P.L., Clancy, N., Elson, D.S., Haase, S., Heim, E., et al.: Comparative validation of single-shot optical techniques for laparoscopic 3-d surface reconstruction. IEEE Trans. Med. imaging 33(10), 1913–1930 (2014)

    Article  Google Scholar 

  3. Haouchine, N., Roy, F., Untereiner, L., Cotin, S.: Using contours as boundary conditions for elastic registration during minimally invasive hepatic surgery. In: 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 495–500. IEEE (2016)

  4. Koo, B., Özgür, E., Le Roy, B., Buc, E., Bartoli, A.: Deformable registration of a preoperative 3d liver volume to a laparoscopy image using contour and shading cues. In: International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 326–334. Springer (2017)

  5. Bregler, C., Hertzmann, A., Biermann, H.: Recovering non-rigid 3D shape from image streams. In: CVPR. IEEE (2000)

  6. Li, J., Hero, A.O.: A fast spectral method for active 3d shape reconstruction. J. Math. Imag. Vis. 20(1), 73–87 (2004). https://doi.org/10.1023/B:JMIV.0000011324.14508.fb

    MathSciNet  MATH  Google Scholar 

  7. Montenegro, A.A., Velho, L., Carvalho, P.C.P., Sossai, J.: Reconstruction of 3d object meshes from silhouette images. J. Math. Imaging Vis. 29(2), 119–130 (2007). https://doi.org/10.1007/s10851-007-0040-7

    Article  MathSciNet  Google Scholar 

  8. Torresani, L., Hertzmann, A., Bregler, C.: Nonrigid structure-from-motion: estimating shape and motion with hierarchical priors. IEEE Trans. Pattern Anal. Mach. Intell. 30(5), 878–892 (2008)

    Article  Google Scholar 

  9. Chhatkuli, A., Pizarro, D., Bartoli, A., Collins, T.: A stable analytical framework for isometric shape-from-template by surface integration. IEEE Trans. Pattern Anal. Mach. Intell. 39(5), 833–850 (2017)

    Article  Google Scholar 

  10. Agudo, A., Montiel, J.M.M., Agapito, L., Calvo, B.: Modal space: a physics-based model for sequential estimation of time-varying shape from monocular video. J. Math. Imag. Vis. 57(1), 75–98 (2017)

    Article  MathSciNet  Google Scholar 

  11. Liu-Yin, Q., Yu, R., Fitzgibbon, A., Agapito, L., Russell, C.: Better together: Joint reasoning for non-rigid 3d reconstruction with specularities and shading

  12. Salzmann, M., Fua, P.: Linear local models for monocular reconstruction of deformable surfaces. IEEE Trans. Pattern Anal. Mach. Intell. 33(5), 931–944 (2011)

    Article  Google Scholar 

  13. Bartoli, A., Gérard, Y., Chadebecq, F., Collins, T., Pizarro, D.: Shape-from-template. IEEE Trans. Pattern Anal. Mach. Intell. 37(10), 2099–2118 (2015)

    Article  Google Scholar 

  14. Ngo, D.T., Östlund, J., Fua, P.: Template-based monocular 3d shape recovery using laplacian meshes. IEEE Trans. Pattern Anal. Mach. Intell. 38(1), 172–187 (2016)

    Article  Google Scholar 

  15. Taylor, J., Jepson, A.D., Kutulakos, K.N.: Non-rigid structure from locally-rigid motion. In: CVPR (2010)

  16. Perriollat, M., Hartley, R., Bartoli, A.: Monocular template-based reconstruction of inextensible surfaces. Int. J. Comput. Vis. 95(2), 124–137 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  17. Agudo, A., Moreno-Noguer, F., Calvo, B., Montiel, J.M.M.: Sequential non-rigid structure from motion using physical priors. IEEE Trans. Pattern Anal. Mach. Intell. 38(5), 979–994 (2016)

    Article  Google Scholar 

  18. Haouchine, N., Dequidt, J., Berger, M.O., Cotin, S.: Single view augmentation of 3D elastic objects. In: ISMAR, pp. 229–236. IEEE(2014)

  19. Malti, A., Bartoli, A., Hartley, R.: A linear least-squares solution to elastic shape-from-template. In: CVPR, pp. 1629–1637 (2015)

  20. Özgür, E., Bartoli, A.: Particle-sft: a provably-convergent, fast shape-from-template algorithm. Int. J. Comput. Vis. 123(2), 184–205 (2017)

    Article  Google Scholar 

  21. Malti, A., Herzet, C.: Elastic shape-from-template with spatially sparse deforming forces. In: CVPR. IEEE (2017). https://doi.org/10.1109/cvpr.2017.23

  22. Haouchine, N., Cotin, S.: Template-based monocular 3D recovery of elastic shapes using lagrangian multipliers. In: CVPR. IEEE (2017). https://doi.org/10.1109/cvpr.2017.381

  23. Del Bue, A.: A factorization approach to structure from motion with shape priors. In: IEEE Conference on Computer Vision and Pattern Recognition, 2008. CVPR 2008. pp. 1–8. IEEE (2008)

  24. Olsen, S.I., Bartoli, A.: Implicit non-rigid structure-from-motion with priors. J. Math. Imaging Vis. 31(2), 233–244 (2008)

    Article  MathSciNet  Google Scholar 

  25. Akhter, I., Sheikh, Y., Khan, S., Kanade, T.: Nonrigid structure from motion in trajectory space. In: Advances in Neural Information Processing Systems, pp. 41–48 (2009)

  26. Gotardo, P.F., Martinez, A.M.: Kernel non-rigid structure from motion. In: 2011 IEEE International Conference on Computer Vision (ICCV), pp. 802–809. IEEE (2011)

  27. Dai, Y., Li, H., He, M.: A simple prior-free method for non-rigid structure-from-motion factorization. In: CVPR (2012)

  28. Garg, R., Roussos, A., Agapito, L.: Dense variational reconstruction of non-rigid surfaces from monocular video. In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2013)

  29. Russell, C., Yu, R., Agapito, L.: Video pop-up: monocular 3d reconstruction of dynamic scenes. In: Computer Vision–ECCV 2014, pp. 583–598. Springer (2014)

  30. Parashar, S., Pizarro, D., Bartoli, A.: Isometric non-rigid shape-from-motion with riemannian geometry solved in linear time. IEEE Trans. Pattern Anal. Mach. Intell. (2017)

  31. Varol, A., Salzmann, M., Tola, E., Fua, P.: Template-free monocular reconstruction of deformable surfaces. In: CVPR (2009)

  32. Vicente, S., Agapito, L.: Soft inextensibility constraints for template-free non-rigid reconstruction. In: ECCV (2012)

  33. Agudo, A., Agapito, L., Calvo, B., Montiel, J.M.: Good vibrations: A modal analysis approach for sequential non-rigid structure from motion. In: Proceedings of the IEEE Conference on Computer Visionand Pattern Recognition, pp. 1558–1565 (2014)

  34. Agudo, A., Moreno-Noguer, F.: Simultaneous pose and non-rigid shapewith particle dynamics. In: Proceedings of the IEEE Conference onComputer Vision and Pattern Recognition, pp. 2179–2187 (2015)

  35. Varol, A., Shaji, A., Salzmann, M., Fua, P.: Monocular 3d reconstruction of locally textured surfaces. IEEE Trans. Pattern Anal. Mach. Intell. 34(6), 1118–1130 (2012)

    Article  Google Scholar 

  36. Brunet, F., Bartoli, A., Hartley, R.I.: Monocular template-based 3D surface reconstruction: convex inextensible and nonconvex isometric methods. Comput. Vis. Image Underst. 125, 138–154 (2014)

    Article  Google Scholar 

  37. Salzmann, M., Fua, P.: Reconstructing sharply folding surfaces: a convex formulation. In: IEEE Conference on Computer Vision and Pattern Recognition, 2009. CVPR 2009, pp. 1054–1061. IEEE (2009)

  38. Salzmann, M., Moreno-Noguer, F., Lepetit, V., Fua, P.: Closed-form solution to non-rigid 3d surface registration. Comput. Vis.-ECCV 2008, 581–594 (2008)

    Google Scholar 

  39. Vicente, S., Agapito, L.: Balloon shapes: Reconstructing anddeforming objects with volume from images. In: 2013 International Conference on 3DTV-Conference, pp. 223–230. IEEE (2013)

  40. Moreno-Noguer, F., Salzmann, M., Lepetit, V., Fua, P.: Capturing 3d stretchable surfaces from single images in closed form. In: IEEE Conference on Computer Vision and Pattern Recognition, 2009. CVPR 2009, pp. 1842–1849. IEEE (2009). https://doi.org/10.1109/CVPR.2009.5206758

  41. Gallardo, M., Collins, T., Bartoli, A.: Using shading and a 3d template to reconstruct complex surface deformations. In: BMVC (2016)

  42. Malti, A., Hartley, R., Bartoli, A., Kim, J.-H.: Monocular template-based 3D reconstruction of extensible surfaces with local linear elasticity. In: CVPR (2013)

  43. Evans, L.C.: Partial Differential Equations, Graduate Studies in Mathematics, vol. 19, 2nd edn. American Mathematical Society, Providence (1998)

    Google Scholar 

  44. John, F.: Partial Differential Equations, Applied Mathematical Sciences, vol. 1. Springer, New York (1982)

    Google Scholar 

  45. Monge, G.: Application de l’analyse à la géométrie: à l’usage de l’Ecole imperiale polytechnique. Ve. Bernard (1809). https://books.google.es/books?id=ZmUSAAAAIAAJ

  46. Lindellof, E.: Sur l’application de la méethode des approximations successives aux équations différentielles ordinaires du premier ordre. Comptes rendus hebdomadaires des sances de l’Académie des sciences. Bachelier and Gauthier-Villars (Paris) (1894). http://gallica.bnf.fr/ark:/12148/bpt6k3074r/f454.item.zoom#

  47. Casillas-Perez, D., Pizarro, D.: Solutions of quadratic first-order ODEs applied to computer vision problems. arXiv (2017). arxiv: 1710.04265

  48. Pizarro, D., Bartoli, A.: Feature-based deformable surface detection with self-occlusion reasoning. Int. J. Comput. Vis. 97(1), 54–70 (2012)

    Article  MATH  Google Scholar 

  49. Sundaram, N., Brox, T., Keutzer, K.: Dense point trajectories by GPU-accelerated large displacement optical flow. In: Europeanconference on Computer Vision, pp. 438–451. Springer (2010)

  50. Gay-Bellile, V., Bartoli, A., Sayd, P.: Direct estimation of nonrigid registrations with image-based self-occlusion reasoning. IEEE Trans. Pattern Anal. Mach. Intell. 32(1), 87–104 (2010). https://doi.org/10.1109/TPAMI.2008.265

    Article  Google Scholar 

  51. Perriollat, M., Bartoli, A.: A computational model of bounded developable surfaces with application to image-based three-dimensional reconstruction. Comput. Anim. Virtual Worlds 24(5), 459–476 (2013). https://doi.org/10.1002/cav.1478

    Article  Google Scholar 

  52. Floater, M.S., Hormann, K.: Surface parameterization: a tutorial and survey. In: Advances in Multiresolution for Geometric Modelling, pp. 157–186. Springer (2005). https://doi.org/10.1007/3-540-26808-1_9

Download references

Acknowledgements

This research has received funding from the Spanish Ministry of Education and Culture under the scholarship FPU, the Spanish Ministry of Economy, Industry and Competitiveness under the project ARTEMISA (TIN2016-80939- R), the University of Alcalá, Spain under the project SEQUENCE (CCGP2017-EXP/048) and the EU’s FP7 through the ERC research grant 307483 FLEXABLE.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David Casillas-Perez.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

A Appendix: Classification of Critical Points

1.1 A.1 Isolated Critical Points

We define isolated critical points as follows.

Definition 3

A point p is an isolated critical point if it is a critical point (\({\tilde{\rho }}_u={\tilde{\rho }}_v=0\)) and the Hessian of the depth function \({\tilde{\rho }}\) is non-degenerate.

Consequently, there must exist a neighborhood around the critical point p where all points are non-critical except for the point p. By imposing integrability conditions, if the surface has a finite number of these points, there exists only one possible solution to the reconstruction PDE in the neighborhood of p.

1.2 A.2 Critical Curves

Perspective critical curves are spherical curves. We prove that perspective critical curves are contained in a spherical surface whose center is located at the camera center. First of all, we define critical curves as follows.

Definition 4

A curve \({\mathcal {C}}\) in the surface \({\mathcal {S}}\) is a critical curve of the surface \({\mathcal {S}}\) with respect to the perspective parametrization \(({\mathcal {I}},X_p)\) if all its points are critical \(({\tilde{\rho }}_u={\tilde{\rho }}_v=0)\).

Theorem 7

If \({\mathcal {C}}\) is a critical curve of a surface \({\mathcal {S}}\) with respect to a perspective parametrization \((U,X_p)\), then, the curve \({\mathcal {C}}\) belongs to a spherical surface whose center is located at the camera center.

Fig. 14
figure 14

Proof that critical curves are spherical curves that lie on a sphere whose center is located at the camera center. If the curve \({\mathcal {C}}\) is critical, then, if there is a point p out of the sphere \({\mathcal {S}}\), either p is a critical point or there is a critical point q in its neighborhood

Proof

Figure 14 illustrates the proof. Suppose that there exist a point p of the critical curve \({\mathcal {C}}\) that does not belong to the sphere \({\mathcal {S}}\) whose center is placed at the camera center and has a radius of \(\rho _0\). There are two possibilities. If we assume that p is not a critical point, then, the curve is non-critical, contradicting the hypothesis. If we assume that p is a critical point, there is a neighborhood \(\varOmega \subset {\mathcal {C}}\) of p where there exist a point \(q\in \varOmega \) that is a non-critical point, contradicting the hypothesis. So, critical curves are spherical curves that belong to a sphere whose radius is located on the camera coordinate center.\(\square \)

Remark 1

The only possible critical surfaces are the family of conformal spheres centered at the camera center.

Remark 2

Given any surface of revolution whose axis of symmetry is in the xy-plane, that contains the camera center. If its generatrix has a maximum, minimum or a saddle point at \(t=0\), then, the surface has as a critical curve formed by rotating this point around the generatrix. An example is a cylinder whose generatrix passes through the camera center, see Fig. 8.

B Refinement Method

We propose a refinement method for equiareal SfT based on minimizing a MAP compound cost functional. We proceed by defining the parametrization of \({\mathcal {S}}\) from the template domain \(({\mathcal {U}}, \varphi )\), where \(\varphi \in {\mathcal {C}}^2({\mathcal {U}},{\mathbb {R}}^3)\). From the commutative diagram shown in Fig. 2, we have that \(X_i = \varphi \circ \eta \), where we recall that \(\eta \) is a known function. Working with \(\varphi \) instead of \(X_i\) allows us to propose a MAP data cost. We define the set of correspondences between the template and the image as pairs of 2D points \((p^i\in {\mathcal {U}}, q^i\in {\mathcal {I}})\) for \(i=1,\ldots ,N\). Our cost functional is defined as:

$$\begin{aligned} \varepsilon [\varphi ] = \lambda \varepsilon _\mathrm{data}[\varphi ] + \mu \varepsilon _\mathrm{equiA}[\varphi ] +\kappa \varepsilon _\mathrm{smth}[\varphi ] + \nu \varepsilon _\mathrm{init}[\varphi ], \nonumber \\ \end{aligned}$$
(33)

where \(\varepsilon _\mathrm{data}\) is the data term:

$$\begin{aligned} \varepsilon _\mathrm{data}[\varphi ] = \sum ^N_{i=1}||\varPi _{p}(\varphi (p^i)) - q^i||^2. \end{aligned}$$
(34)

\(\varepsilon _{equiA}\) is the equiareal constraint defined as:

$$\begin{aligned} \varepsilon _\mathrm{equiA}[\varphi ] = \sum _{p\in P}||{\mathbb {I}}[\varDelta (p)] - {\mathbb {I}}[\varphi (p)]||^2, \end{aligned}$$
(35)

where \(P\subset {\mathcal {U}}\) is a regular grid of points defined in the template domain. \({\mathbb {I}}[X_t(p)]\) and \({\mathbb {I}}[\varphi (p)]\) are the determinants of the first fundamental form of surfaces \(X_t\) and \(\varphi \), respectively, evaluated at point p. \(\varepsilon _\mathrm{smth}\) is a functional that minimizes the bending energy of the surface which encourages the solution to be smooth. Finally, the error of the initial conditions is defined by:

$$\begin{aligned} \varepsilon _\mathrm{init}[\varphi ] = \sum _{i\in I}||\varphi (r^i) - s^i||^2, \end{aligned}$$
(36)

where I are the index set and \(r^i\) are points in \({\mathcal {U}}\) that correspond to the set of 3D points \(s^i\in S\) taken from the initial conditions. The set of hyperparameters \(\lambda \), \(\mu \), \(\kappa \) and \(\nu \) are scalars that control the importance of each functional and are fixed.

We use a B-spline to approximate \(\varphi \) which converts the variational problem of Eq. (33) into a non-convex polynomial cost function. We use the Levenberg-Marquardt algorithm to iteratively minimize the cost given an initial estimate of \(\varphi \).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Casillas-Perez, D., Pizarro, D., Fuentes-Jimenez, D. et al. Equiareal Shape-from-Template. J Math Imaging Vis 61, 607–626 (2019). https://doi.org/10.1007/s10851-018-0862-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10851-018-0862-5

Keywords

Navigation