Examples of FeatureExtractorCheckBox


Examples of com.meapsoft.gui.widgets.FeatureExtractorCheckBox

    {
      //sniff out the feature extrators first
      Vector featureExtractors = sniffForClasses("com.meapsoft.featextractors", "com.meapsoft.featextractors.FeatureExtractor");
     
      //save a place for the default check here
      FeatureExtractorCheckBox defaultChk = null;
     
      //iterate and create our checkboxes
        for(int i = 0; i < featureExtractors.size(); i++)
        {
          //get the name
          String name = featureExtractors.get(i).toString();
         
          //create the checkbox here
          FeatureExtractorCheckBox chk = new FeatureExtractorCheckBox(name);
         
          //make us an actionlistener for the checkbox
          chk.addChangeListener(this);
         
          //see if its a meta extractor
          if(chk.getExtractor() instanceof MetaFeatureExtractor)
          {
            mMetaFeatureList.add(chk);
          }
          else
          {
            mFeatureList.add(chk);
           
            //check this one by default
            if(chk.getName().equals("AvgPitch"))
            {
              defaultChk = chk;
            }
          }
        }
View Full Code Here

Examples of com.meapsoft.gui.widgets.FeatureExtractorCheckBox

    Vector weights = new Vector();
   
    //load features first
    for(int i = 0; i < selectedFeatures.size(); i++)
    {
      FeatureExtractorCheckBox chk = (FeatureExtractorCheckBox)selectedFeatures.get(i);
      features.add(chk.getExtractor());
      weights.add(chk.getWeight());
    }
   
    //then load meta features
    for(int i = 0; i < selectedMetaFeatures.size(); i++)
    {
      FeatureExtractorCheckBox chk = (FeatureExtractorCheckBox)selectedMetaFeatures.get(i);
      features.add(chk.getExtractor());
      weights.add(chk.getWeight());
    }
   
   
    //create the actual feat extractor, make it clear non-meta features
        FeatExtractor featExtractor = new FeatExtractor(segmentFile, featFile, features);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.