Beispiel #1
0
        /// <summary>
        /// 罫線処理のパラメタ変数設定
        /// </summary>
        private void InitTableEraseParam()
        {
            EraserParams env = TableEraser.Env;

            this.numMinLength.Value        = env.MinLenght;
            this.numRatio.Value            = env.LineRectRatio;
            this.numMinStep.Value          = env.MinScanLength;
            this.numMaxSpace.Value         = env.MaxDotSpace;
            this.numHStep.Value            = env.HighSpeedStep;
            this.numExtraFrameMargin.Value = env.ExtractFrameMargin;
        }
Beispiel #2
0
        private void SetTableEraserParam()
        {
            EraserParams env = new EraserParams();

            env.MinLenght          = (int)this.numMinLength.Value;
            env.LineRectRatio      = (int)this.numRatio.Value;
            env.MinScanLength      = (int)this.numMinStep.Value;
            env.MaxDotSpace        = (int)this.numMaxSpace.Value;
            env.HighSpeedStep      = (int)this.numHStep.Value;
            env.ExtractFrameMargin = (int)this.numExtraFrameMargin.Value;
            TableEraser.SetParams(env);
        }
Beispiel #3
0
 /// <summary>
 /// パラメタを設定する
 /// </summary>
 /// <param name="minLength">罫線矩形の長さの最小しきい値</param>
 /// <param name="lineRectRatio">罫線矩形の縦横比のしきい値</param>
 /// <param name="minScanLength">罫線走査の最小しきい値</param>
 /// <param name="maxDotSpace">点線の最大間隔値</param>
 public static void SetParams(EraserParams env)
 {
     _env = env;
 }