I have a video of a microscopic size muscle tissue contracting and I have to track the displacement. I am trying to track a point by segmenting the cantilever that stretches the muscle and using the furthest right point of the cantilever (the point closest to the muscle tissue) to track that coordinate frame by frame. The problem is, when I run the program frame by frame the segmentation is not consistent enough throughout every frame. I am currently trying these steps to get my final image for each frame:
- manual threshold to threshold only the cantilever in the image (Otsu's created for many objects)
- using stats to find the furthest x point of the one object in the image
I need help with either optimizing my segmentation/morphological processing or a completely different way of tracking displacement frame by frame for the video.