working mean contrast based detector