PAPRICA-3: a real-time morphological image processor