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