コード例 #1
0
ファイル: HSCPThinning.cs プロジェクト: kayyer/sigstat
        /// <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.");
        }
コード例 #2
0
        /// <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.");
        }