public static List < Contour > contourExternal ( GrayU8 input , ConnectRule rule ) { BinaryContourFinder alg = FactoryBinaryContourFinder . linearExternal ( ) ; alg . setConnectRule ( rule ) ; alg . process ( input ) ; return convertContours ( alg ) ; }
Finds the external contours only in the image