/// <inheritdoc/> public void Transform(Signature signature) { bool[,] b = signature.GetFeature <bool[, ]>(InputFeatures[0]); Progress = 50; int stepCnt = 0; OnePixelThinningStep algo = new OnePixelThinningStep(); while (algo.ResultChanged != false) { b = algo.Scan(b); stepCnt++; } signature.SetFeature(OutputFeatures[0], b); Progress = 100; Log(LogLevel.Info, $"One pixel thinning steps applied {stepCnt} times."); }
/// <inheritdoc/> public void Transform(Signature signature) { var b = signature.GetFeature(Input); Progress = 50; int stepCnt = 0; OnePixelThinningStep algo = new OnePixelThinningStep(); while (algo.ResultChanged != false) { b = algo.Scan(b); stepCnt++; } signature.SetFeature(Output, b); Progress = 100; this.LogInformation($"One pixel thinning steps applied {stepCnt} times."); }