Subpixel Edge Localization with Statistical Error Compensation