/** * Configures the detector * * @param regionWidthLength How wide the local square region is. * @param tuning Tuning parameter. 0 = standard Otsu. Greater than 0 will penalize zero texture. */ public ThresholdLocalOtsu(boolean otsu2, ConfigLength regionWidthLength, double tuning, double scale, boolean down ) { this.regionWidthLength = regionWidthLength; this.otsu = new ComputeOtsu(otsu2,tuning,down,scale); }
/** * Configures the detector * * @param requestedBlockWidth About how wide and tall you wish a block to be in pixels. * @param tuning Tuning parameter. 0 = standard Otsu. Greater than 0 will penalize zero texture. */ public ThresholdBlockOtsu(boolean otsu2, ConfigLength requestedBlockWidth, double tuning, double scale, boolean down, boolean thresholdFromLocalBlocks ) { super(requestedBlockWidth,thresholdFromLocalBlocks,GrayU8.class); this.otsu = new ComputeOtsu(otsu2,tuning,down,scale); stats = new InterleavedS32(1,1,256); }