Multi-Scale pattern recognition for image classification and segmentation door