Exemplo n.º 1
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        /// <param name="type">Symbol set to use</param>
        /// <param name="width">Width of images</param>
        /// <param name="height">Height of images</param>
        /// The location of the gate files is hard-coded in GateFiles.cs
        public ImageMatch(string type, int width, int height)
        {
            switch (type)
            {
            case "GATE":
                //Note: This class hard-codes the location of the gate journal files.
                m_symbolFiles = new GateFiles();
                break;

            case "PARTIAL":
                m_symbolFiles = new PartialFiles();
                break;

            default:
                throw new Exception("Specify either GATE or PARTIAL");
            }
            m_width  = width;
            m_height = height;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="fileStuff">Specifies files to find</param>
 /// <param name="width">Width of image</param>
 /// <param name="height">Height of image</param>
 public CreateTrainingFile(SymbolFiles fileStuff, int width, int height)
     : this(fileStuff.TrainFile, fileStuff.Names, fileStuff.TrainingFiles, width, height)
 {
 }