Segmentation of Pre-processed Medical Images: An Approach Based on Range Filter