MecaPix lab sessions: image-based measurement and DIC

At École Centrale de Nantes, students discover image-based measurement in experimental mechanics, where the camera is a sensor used to measure a displacement field. The lab sessions rely on the open-source web application MecaPix developed at GeM, and on teaching rigs designed and built in the laboratory.

What are these lab sessions for?

Full-field measurement from images (point tracking, digital image correlation or DIC) has become a standard tool in the mechanics of materials and structures, but it is often used as a “black box”. These sessions make the whole process understood and controlled:

1. The camera

Understand what it measures: the grey levels, the sensor noise, the lens distortion.

2. The speckle

Assess it and study its influence with several indicators: histogram, black/white density, mean intensity gradient (MIG).

3. The displacement field

Go from images to displacement and velocity for rigid bodies, or to strain for deformable bodies.

4. The quality

Evaluate the measurement by studying the influence of the mesh and the regularisation, the residual fields, and the measurement and spatial resolutions.

In the first and second years of the bachelor’s programme, MecaPix is used to study the kinematics of particles and rigid bodies from videos. In the third year of the bachelor’s programme or the first year of the engineering programme, students discover continuum mechanics, and the lab sessions focus on measuring displacement and strain fields (applied to a foam cube under compression and shear). At master’s level, the sessions deal with controlled measurement of displacement fields, from image acquisition to digital image correlation.

Everything runs in a web browser, with nothing to install: the images are taken with the rig’s camera, and the computations and basic analysis of the results are available directly in MecaPix. Some of the images used in the lab sessions (TP MMCe and TP Aussois) are available among the application’s examples.

The rig

Designed and built by Jean-Michel Lebrun (GeM), each workstation has a USB camera mounted on a test base, facing a speckled foam cube, either homogeneous or containing an inclusion. A slider imposes predefined positions on its upper face — reference, compression, shear — producing either a homogeneous strain field or a heterogeneous one localised around the inclusion, which is measured by image correlation.

The sessions were first run with Razer Kiyo webcams (about €45) with a built-in LED ring light — cheap, but typical of consumer cameras: wide-angle lens with strong distortion, high noise, automatic settings. They have recently been replaced by Daheng Imaging MER2-160-227U3M/C industrial cameras (MERCURY2 series): 1.6 MP global-shutter CMOS sensor (1440 × 1080), up to 227 frames per second, USB 3.0 and C-mount. Students thus work in conditions close to those of a research laboratory.

Centrale Nantes lab equipment: test base with loading slider, industrial camera, speckled foam cubes and image carousels

The tool: MecaPix

MecaPix is a web application (Python, Django) developed by Gilles Marckmann (GeM) and released as open-source software on the GeM GitLab (see the Open source page). It brings together four modules:

  • Kinematics of a particle or a rigid body: from a video (falling ball, rolling disc…), scaling, dot tracking, rigid-body motion, trajectories and velocities.
  • Kinematics of deformable bodies: tracking a grid of marked dots to obtain the displacements and the strains.
  • Digital image correlation: capture with the workstation camera or upload, choice of algorithm (Pyxel, PyDIC, pyvale, FE-Global-ECN, OpenCV…), mesh and regularisation; computation of displacement, strain and residual fields; speckle analysis.
  • Camera distortion & noise: distortion rate measured on a checkerboard, sensor noise versus grey level.

Focus

MECAMAT conference, Aussois 2026

The set-up was used in a lab session entitled “From images to displacement” at the MECAMAT Aussois 2026 conference — Images, mechanics and materials (written by Michel Coret, with the support of the PhotoMechanics association). The rig combines a Razer Kiyo webcam, image carousels — handled cubes carrying grey-level gradients, a checkerboard and speckle patterns — and the foam cube with an inclusion.

For this audience of researchers, the focus was on camera flaws, even before running a correlation:

  • noise: intrinsic noise of the webcam, with the lens covered and then on grey-level gradients, identification of the affine model σ² = g·⟨GL⟩ + σ₀², comparison with an AVT Prosilica GT6600 scientific camera
  • distortion: distortion rate measured on a checkerboard, Brown-Conrady radial model and its effect on measured strains
  • then the assessment of four speckle patterns, DIC on the foam cube, interpolation error and the Metrological Efficiency Indicator (MEI)

The images used are available among the MecaPix examples (under Aussois 2026).

Many thanks to Anne Lesveque for her help in setting up the lab session.

📄 Download the lab handout “Des images au déplacement” — Aussois 2026 (PDF in French, 3.7 MB)

Lab room in Aussois: participants working on the MecaPix rigs

Focus

CSMA 2026 conference, Giens

MecaPix was presented to the French structural mechanics community at the 17th National Conference on Structural Computation (CSMA 2026), held on 18–22 May 2026 on the Giens peninsula. The talk “Mecapix – Une application web pour l’apprentissage de la cinématique par les images” (a web application for learning kinematics from images; Michel Coret, GeM) was part of the Software session, alongside simulation and optimisation tools.

This audience, mostly focused on numerical simulation, could see how the application connects images, full-field measurement and continuum mechanics, from rigid-body kinematics to digital image correlation.

Aerial view of the CSMA conference venue in Giens: pine forest, beach and bay

Focus

The rigs at UCLouvain

This year, the rigs were lent to the Université catholique de Louvain (Belgium), which used them for its own lab sessions with MecaPix.

Running in a plain web browser and released as open-source software, the tool transfers easily from one institution to another: all it takes is the rigs and access to the application.

Group of UCLouvain students and teachers with the MecaPix rigs

Focus

Polytech Sorbonne: DIC and plane elasticity

MecaPix is also used outside Centrale Nantes. At Polytech Sorbonne, the fourth-year solid mechanics course of the Mechanical Engineering programme (Lucas Frérot and Nicolas Bruzy) includes a digital image correlation lab session built around the application.

On a foam cube under compression, students bring measurement and computation together:

  • measurement: two images (reference and compressed state), then the displacement field computed in the MecaPix DIC module with the Pyxel algorithm, varying the size of the correlation window;
  • analytical model: plane elasticity with an Airy stress function, to compare the field patterns and estimate the applied pressure from the measured strain;
  • finite element analysis: 2D simulation with Cast3m, mesh convergence and calibration of the pressure against the measurement.

A concrete example of what an open-source, browser-based tool offers: it fits, with nothing to install, into teaching designed by another team.

Model sketch: square section of side H, supported on edge PS and loaded by a pressure p on edge QR
The modelled problem: cube of side H under a compressive pressure p (lab handout, Polytech Sorbonne).

Credits and links

  • MecaPix application: Gilles Marckmann (GeM) — online application · source code
  • Lab handouts and tracking algorithms (dotTracking, pathFINDER): Michel Coret (GeM)
  • Design and manufacturing of the rigs: Jean-Michel Lebrun (GeM)
  • Built-in correlation algorithms: Pyxel (J.-C. Passieux, ICA Toulouse), PyDIC (D. André, Univ. Limoges), pyvale (UKAEA), FE-Global-ECN (J. Réthoré, M. Coret, GeM)

Comments are closed.