I have gotten an enhanced image of mammogram for automatically detection of breast cancer in matlab. But after enhancement process, I have found some small parts which are not associated with the main mass portion of breast cancer, so I have to delete these small unwanted parts automatically. Please help me if any can give the solution, how to delete these unwanted small parts in matlab without giving any external input like using bwareaopen() like code where external input of pixel value and no of connection is required...