Example #1
0
        /// <summary>
        /// Remove this feature from the list for selection.
        /// </summary>
        /// <param name="fp">The feature to remove.</param>
        /// <returns></returns>
        public bool deselect_feature(Feature fp)
        { 
            if (fp.selected_flag == false)
            {
                //if (DEBUGDUMP) cout << "Feature with label " << fp.label 
		          //  << " is already deselected." << endl;
            }
            fp.set_selected_flag(false);
            selected_feature_list.Remove(fp);
            return true;
        }
Example #2
0
        //*******************Feature Selection and Measurement************************

        /// <summary>
        /// Add this feature to the list for selection.
        /// </summary>
        /// <param name="fp">The feature to add.</param>
        /// <returns></returns>
        public bool select_feature(Feature fp)
        {
            if (fp.get_selected_flag() == true)
            {
                //if (DEBUGDUMP) cout << "Feature with label " << fp.get_label() 
		            //<< " is already selected." << endl;
                return true;
            }

            fp.set_selected_flag(true);

            selected_feature_list.Add(fp);

            return true;
        }