Compares a bitmap number image against a template