A practical guide always includes a chapter on speeding up code: preallocating arrays, using imfilter vs. manual convolution, and applying parfor for batch video frame processing.

If you're using a free PDF copy found online:

Detect and highlight moving objects in a static surveillance video.

Practical Image And Video Processing Using Matlab Pdf !!top!! -

A practical guide always includes a chapter on speeding up code: preallocating arrays, using imfilter vs. manual convolution, and applying parfor for batch video frame processing.

If you're using a free PDF copy found online:

Detect and highlight moving objects in a static surveillance video.