Wolfram Language

Measure Motion of Cardiac Muscle Cells

Analyze a video of heart tissue and measure the motion and contraction patterns.

Start by importing the video data.

Load information about the frame count, frame rate and video duration.

Extract a clip of 64 frames from the video.

Determine the local shifts from one frame to the next.

Regularize the flow data in time and space.

Display the tissue's motion vector field.

show complete Wolfram Language input

Accumulate the flow magnitude in each frame for the entire video.

Find the frames of peak flow to determine the pulse.

The resulting heart rate per minute.

Calculate the divergence of the flow field to identify regions of contraction and expansion. The red regions expand while the blue regions contract.

Related Examples

de es fr ja pt-br zh