Text this: Automatic spike detection and correction for outdoor machine vision: application to tomato