Instructions
This interactive demonstration shows Digital Image Correlation (DIC) in action, using your webcam. DIC estimates the motion of pixels between consecutive frames of a video.
- Camera Access: Grant camera access when prompted.
- Live Video: The canvas shows the live feed from your camera.
- Capture Reference Frame: Click the "Capture Reference Frame" button in the GUI to capture a reference frame for comparison.
- Observe Motion: Coloured lines on the canvas show pixel movement relative to the captured frame.
- Adjust Parameters:
- Flow Density: Controls how many flow vectors are displayed (higher = more lines). This does not affect the optical flow calculation itself, only the visualization.
- Window Size: Adjusts the neighbourhood size for correlation calculation. Smaller is noisier but picks up finer features. Larger is smoother and more spread out.
- Vector Scale: Adjusts the scale of the flow vectors displayed on the canvas. Higher values make the vectors longer and more visible.
- Vector Colour: Adjust the colour of the flow vectors displayed on the canvas.
- Incremental: If enabled, compares incremental steps in the video acquisition. If disabled, compares displacements against the captured reference frame.
- Download Data: Click "Download Displacements" to get an Excel file with the raw displacement values.
- Take Screenshot: Click "Screenshot" to capture the current view as an image.