Visual surveillance by depth from focus