Code covered by the BSD License  

Highlights from
Simple cell tracking/contour for extensional flow

image thumbnail

Simple cell tracking/contour for extensional flow

by

 

This script tracks two cells in an extensional flow field while measuring the contours.

ReadAndCropVideo.m
%Read in and view movie
%Part 1 of 2 of full .avi analysis
%Kevin Roth
%2011-08-17

close all
clearvars
clc

cellmovie = mmreader('*.avi');
nFrames = cellmovie.NumberOfFrames;
fRate = cellmovie.FrameRate;
vidHeight = cellmovie.Height;
vidWidth = cellmovie.Width;

for j = 1:nFrames
    imageData = read(cellmovie,j);
    
    cropimage = imcrop(imageData, [150 150 200 330]);
    %imcrop([xmin ymin width height])
    figure(1), imshow(cropimage);
end

%Crop the video so that only two cells are present in the field of view at
%all times.  The simple particle tracking in the next script will not work
%if extra cells are detected.

Contact us