LargestContour This program detects the largest part of an image by detecting contours with the help of connecting components.