Hello, I have a 20 seconds video which has a beating heart of an animal (captured by microscope). I want to find beating pattern of this heart in terms of displacement vs. seconds (i.e. displacements per seconds). How can I do this? Thanks!
Neeta Dsouza answered .
2025-11-20
Segment the heart and measure it's area for each frame. Then find the peak displacement. Finding displacements per second means you need a time window over which you will count the number of displacements. You can find peaks with findpeaks(), and you can count them with conv(). Then divide by the width of the window in seconds to get the count per second.