Generalized Connected Morphological Operators for Robust Shape Extraction door