MATLAB Answers

how to identify the change in frames?

consider there are 12 frames. first 5 frames indicates same operation and remaining 7 frames indicates different operation. i have to form 2 groups. how to achieve this?


1 Answer

Answer by Youssef Khmou
on 27 Feb 2013
 Accepted answer


you can use the gradient operator to identify the movement , but if the frames are very static then you can use elementary operations to identify the changing, but that also depends on the situation, is it offline operations or real time :

 You can construct a loop through which you compute the Norm of the differences between each two consecutive frames :
 tolerance =rand(1) ;  % to identify from Tunning measurments 
 for iter=1:N-1

Or simply you can compute the absolute differences without a loop and sort the vector result then compute its First derivative , and take the Max index of the derivative ; that index is the separating point between the two groups .

Without mentioning that there are sophisticated ways to do the task like the " Support Vector Machine " .

  1 Comment

try using norm or norm2 , look at the description of them both,

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!