/// <summary>
 ///   Constructs a new <see cref="BagOfAudioWords"/>.
 /// </summary>
 ///
 /// <param name="extractor">The feature extractor to use.</param>
 /// <param name="numberOfWords">The number of codewords.</param>
 ///
 public BagOfAudioWords(IAudioFeatureExtractor <TFeature> extractor, int numberOfWords)
 {
     base.Init(extractor, BagOfWords.GetDefaultClusteringAlgorithm(numberOfWords));
 }
Esempio n. 2
0
 Create <TExtractor>(TExtractor detector, int numberOfWords)
     where TExtractor : IImageFeatureExtractor <IFeatureDescriptor <double[]> >
 {
     return(Create <TExtractor, KMeans, IFeatureDescriptor <double[]>, double[]>(detector, BagOfWords.GetDefaultClusteringAlgorithm(numberOfWords)));
 }
 /// <summary>
 ///   Constructs a new <see cref="BagOfVisualWords"/>.
 /// </summary>
 ///
 /// <param name="extractor">The feature extractor to use.</param>
 /// <param name="numberOfWords">The number of codewords.</param>
 ///
 public BagOfVisualWords(IImageFeatureExtractor <TPoint> extractor, int numberOfWords)
 {
     base.Init(extractor, BagOfWords.GetDefaultClusteringAlgorithm(numberOfWords));
 }
Esempio n. 4
0
 /// <summary>
 ///   Constructs a new <see cref="BagOfVisualWords"/> using a
 ///   <see cref="SpeededUpRobustFeaturesDetector">surf</see>
 ///   feature detector to identify features.
 /// </summary>
 ///
 /// <param name="numberOfWords">The number of codewords.</param>
 ///
 public BagOfVisualWords(int numberOfWords)
 {
     base.Init(new SpeededUpRobustFeaturesDetector(), BagOfWords.GetDefaultClusteringAlgorithm(numberOfWords));
 }
Esempio n. 5
0
 /// <summary>
 ///   Constructs a new <see cref="BagOfAudioWords"/> using a
 ///   <see cref="MelFrequencyCepstrumCoefficient">MFCC</see>
 ///   feature detector to identify features.
 /// </summary>
 ///
 /// <param name="numberOfWords">The number of codewords.</param>
 ///
 public BagOfAudioWords(int numberOfWords)
 {
     base.Init(new MelFrequencyCepstrumCoefficient(), BagOfWords.GetDefaultClusteringAlgorithm(numberOfWords));
 }