Research Article

Robust Abnormal Event Recognition via Motion and Shape Analysis at ATM Installations

Algorithm 1

Computation of MHI.
Input: diffImage, ,
Output: mhiImage
height = mhiImage.height();
width = mhiImage.width();
for   to   do
    for   to   do
   if  () 0 then
      mhiImage.setPixel() = ;
      continue;
   end
   if  () − 1 >   then
      mhiImage.setPixel() = val;
      continue;
   else
      mhiImage.setPixel() = 0;
   end
    end
end