I\'m using OpenCV to detect Pneumonia in chest-x-ray using Image Processing, so I need to remove attached area to the image border to get the lung only, can any one help me