From: Zohaib on
I am facing problem in understanding this equation:



b sub(x,y) = min sub(p) med sub (t) (I sub(x,y) and superscript(t) - p) power 2


where I represent a sequence including N images.p is the background brightness value to be determined for the pixel location (x,y), med represents the
median value, and t represents the frame index ranging 1 - N.

it follows Least Median of Square method.

Plz guide to implement this equation.