Esempio n. 1
0
        public void SetFeatureDescriptor(object sender, EventArgs e)
        {
            var currentItem = sender as ToolStripComboBox;
            var enumItem    = EnumExtension.ReturnEnumValue <EFeaturesDescriptor>(currentItem.SelectedItem.ToString());

            IFeatureDescriptor tempItem = null;

            switch (enumItem)
            {
            case EFeaturesDescriptor.ORB: tempItem = new OrientedFastAndRotatedBrief(); break;

            case EFeaturesDescriptor.FAST: tempItem = new FAST(); break;

            case EFeaturesDescriptor.FREAK: tempItem = new FREAK(); break;

            case EFeaturesDescriptor.BRIEF: tempItem = new BRIEF(); break;

            case EFeaturesDescriptor.CudaORB: tempItem = new CudaOrientedFastAndRotatedBrief(); break;
            }

            _sfmManager._descriptor = tempItem;
        }
 public OrientedFastAndRotatedBriefForm(OrientedFastAndRotatedBrief orientedFastAndRotatedBrief)
 {
     orb = orientedFastAndRotatedBrief;
     InitializeComponent();
     InitializeStringForComponents();
 }