%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Author: Roland Miezianko (rmiezian@astro.temple.edu)
% Date: Spring 2003
% Instructor: Dr.Longin Jan Latecki
% Course: CIS 750
% Project : Assignment 2
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% accept difference vector
function [MotionFrames] = GetMotionFrames(DiffVector, Threshold)

MotionFrames = zeros(1,size(DiffVector,1));

for i = 1 : size(DiffVector,1)
    
    if  DiffVector(i,2) > Threshold
        MotionFrames(i) = DiffVector(i,2);
    end
    
end

return;

