A Corner Matching Algorithm with Uncertainty Handling Capability