/** * * @param binary Binary image with a border of zeros added to the outside. * @param labeled Labeled image. Size is the same as the original binary image without border. * @param storagePoints */ public void setInputs(GrayU8 binary , GrayS32 labeled , PackedSetsPoint2D_I32 storagePoints ) { this.binary = binary; this.labeled = labeled; this.storagePoints = storagePoints; if( rule == ConnectRule.EIGHT ) { setOffsets8(offsetsBinary,binary.stride); setOffsets8(offsetsLabeled,labeled.stride); } else { setOffsets4(offsetsBinary,binary.stride); setOffsets4(offsetsLabeled,labeled.stride); } }