Automated Image Enhancement and Segmentation for Detecting Boundaries of Palynological Material