Determine if bulk movement is to the left or right of movie frame?

1 view (last 30 days)
I have a bunch of multipage TIFFs of red blood cells (RBC's) moving within a microfluidic chip (each TIFF stack is 4000 frames long). In some of these videos the cells are moving left-to-right, and in other videos cells move right-to-left. There is hardly ever any movement in y and there are never cells travelling left-to-right and right-to-left in the same video. In a normal video about 200 cells cross the region of interest in about 40 frames each.
Is there any quick way to, given a video, determine if the cells are moving to the left or to the right? no information needed about velocity

Accepted Answer

Jyothis Gireesh
Jyothis Gireesh on 9 Aug 2019
It is my understanding that you want to calculate the direction of motion of cells in a video.
For this purpose, you may make use of optical flow techniques in Computer Vision. Optical flow techniques are usually used to estimate the apparent motion of objects, surfaces and edges in a visual scene. You may make use of the following link to get a high-level overview about the technique.
Regarding the implementation, you may use the estimateFlow function available in the Computer Vision toolbox. This function takes the video file and any one frame as input and returns an opticalFlow object. This contains information about the velocity, phase and amplitude components of the optical flow.
For detailed information on using estimateFlow function you may refer to the following link.
Hope this helps!

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!