Exemplo n.º 1
0
        public CHnMMRecognitionSystem(Configuration parameter)
        {
            //Parameter = parameter;

            //apply parameters
            Circle.minimumRadius        = parameter.minRadiusArea;
            Circle.toleranceFactor      = parameter.toleranceFactorArea;
            Circle.useAdaptiveTolerance = parameter.useAdaptiveTolerance;

            StrokeMap.translationInvariant               = parameter.isTranslationInvariant;
            FixedAreaNumberStrokeMap.nAreas              = parameter.nAreaForStrokeMap;
            FixedAreaNumberStrokeMap.useSmallestCircle   = parameter.useSmallestCircle;
            DynamicAreaNumberStrokeMap.AreaPointDistance = parameter.areaPointDistance;
            DynamicAreaNumberStrokeMap.useSmallestCircle = parameter.useSmallestCircle;


            var transitionSetup = new TransitionCreator(parameter.hitProbability, parameter.distEstName);

            if (parameter.useFixAreaNumber)
            {
                //HiddenModelCreator = new FixedAreaNumberModelCreator(transitionSetup);
                HiddenModelCreator = new FixedAreaNumberModelCreator(transitionSetup);
            }
            else
            {
                HiddenModelCreator = new DynamicAreaNumberModelCreator(transitionSetup);
            }
        }
 public DynamicAreaNumberModelCreator(TransitionCreator setup)
 {
     transitionSetup = setup;
 }
 public FixedAreaNumberModelCreator(TransitionCreator setup)
 {
     transitionSetup = setup;
 }