A supervised contextual classifier based on a region-growth algorithm