public static GrayU8 thin ( GrayU8 input , int maxIterations , GrayU8 output ) { output = InputSanityCheck . checkDeclare ( input , output ) ; output . setTo ( input ) ; BinaryThinning thinning = new BinaryThinning ( ) ; thinning . apply ( output , maxIterations ) ; return output ; }
Applies a morphological thinning operation to the image . Also known as skeletonization .