public static GrayU8 labelToBinary ( GrayS32 labelImage , GrayU8 binaryImage ) { binaryImage = InputSanityCheck . checkDeclare ( labelImage , binaryImage , GrayU8 . class ) ; if ( BoofConcurrency . USE_CONCURRENT ) { ImplBinaryImageOps_MT . labelToBinary ( labelImage , binaryImage ) ; } else { ImplBinaryImageOps . labelToBinary ( labelImage , binaryImage ) ; } return binaryImage ; }
Converts a labeled image into a binary image by setting any non - zero value to one .