Towards computer-based perception by modeling visual perception: A probalistic theory