/// <summary>
 /// The ParameterDescriptorCollection constructor.
 /// </summary>
 /// <param name="rg">Specifies another collection used to create this one.</param>
 public ParameterDescriptorCollection(ParameterDescriptorCollection rg)
 {
     foreach (ParameterDescriptor p in rg)
     {
         m_rgParams.Add(new ParameterDescriptor(p));
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Copy another SourceDesciptor into this one.
        /// </summary>
        /// <param name="sd">Specifies the SourceDesciptor to copy.</param>
        public void Copy(SourceDescriptor sd)
        {
            base.Copy(sd);

            m_nImageCh          = sd.m_nImageCh;
            m_nImageHt          = sd.m_nImageHt;
            m_nImageWd          = sd.m_nImageWd;
            m_bIsRealData       = sd.m_bIsRealData;
            m_nImageCount       = sd.m_nImageCount;
            m_nInactiveCount    = sd.m_nInactiveCount;
            m_bSaveImagesToFile = sd.m_bSaveImagesToFile;
            m_nCopyOfSourceID   = sd.m_nCopyOfSourceID;

            m_rgLabels = new List <descriptors.LabelDescriptor>();
            foreach (LabelDescriptor ld in sd.m_rgLabels)
            {
                m_rgLabels.Add(new descriptors.LabelDescriptor(ld));
            }

            m_colParameters = new descriptors.ParameterDescriptorCollection();
            foreach (ParameterDescriptor p in sd.m_colParameters)
            {
                m_colParameters.Add(new ParameterDescriptor(p));
            }

            m_strLabelCounts = sd.m_strLabelCounts;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// The ParameterDescriptorCollection constructor.
 /// </summary>
 /// <param name="rg">Specifies another collection used to create this one.</param>
 public ParameterDescriptorCollection(ParameterDescriptorCollection rg)
 {
     foreach (ParameterDescriptor p in rg)
     {
         m_rgParamIdx.Add(p.Name, m_rgParams.Count);
         m_rgParams.Add(p.Clone());
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The SourceDescriptor constructor.
 /// </summary>
 /// <param name="s">Specifies another SourceDescriptor used to create this one.</param>
 public SourceDescriptor(SourceDescriptor s)
     : this(s.ID, s.Name, s.ImageWidth, s.ImageHeight, s.ImageChannels, s.IsRealData, s.SaveImagesToFile, s.CopyOfSourceID, s.Owner, s.ImageCount, s.Labels, s.LabelCountsAsText)
 {
     m_colParameters = new descriptors.ParameterDescriptorCollection();
     foreach (ParameterDescriptor p in s.m_colParameters)
     {
         m_colParameters.Add(new ParameterDescriptor(p));
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Copy another DatasetDesciptor into this one.
        /// </summary>
        /// <param name="ds">Specifies the DatasetDesciptor to copy.</param>
        public void Copy(DatasetDescriptor ds)
        {
            base.Copy(ds);

            m_gymType = ds.m_gymType;

            if (ds.m_srcTest != null)
            {
                m_srcTest = new SourceDescriptor(ds.m_srcTest);
            }
            else
            {
                m_srcTest = null;
            }

            if (ds.m_srcTrain != null)
            {
                m_srcTrain = new SourceDescriptor(ds.m_srcTrain);
            }
            else
            {
                m_srcTrain = null;
            }

            if (ds.m_groupDataset != null)
            {
                m_groupDataset = new GroupDescriptor(ds.m_groupDataset);
            }
            else
            {
                m_groupDataset = null;
            }

            if (ds.m_groupModel != null)
            {
                m_groupModel = new GroupDescriptor(ds.m_groupModel);
            }
            else
            {
                m_groupModel = null;
            }

            m_colParameters = new descriptors.ParameterDescriptorCollection();
            foreach (ParameterDescriptor p in ds.m_colParameters)
            {
                m_colParameters.Add(new ParameterDescriptor(p));
            }

            m_strCreatorName = ds.m_strCreatorName;
            m_strDescription = ds.m_strDescription;
        }
Ejemplo n.º 6
0
 /// <summary>
 /// The DatasetDescriptor constructor.
 /// </summary>
 /// <param name="d">Specifies another DatasetDesciptor used to create this one.</param>
 public DatasetDescriptor(DatasetDescriptor d)
     : this(d.ID, d.Name, d.ModelGroup, d.DatasetGroup, d.TrainingSource, d.TestingSource, d.CreatorName, d.Description, d.Owner, d.GymType)
 {
     m_colParameters = new ParameterDescriptorCollection(d.Parameters);
 }