protected void Initialize(IProfile profile, int matchingMinFrames, int matchingMaxFrames, double[] thresholdAccept, double[] thresholdReject, string matchSourceName)
        {
            this.profile           = profile;
            this.matchingMinFrames = matchingMinFrames;
            this.matchingMaxFrames = matchingMaxFrames;
            this.thresholdAccept   = thresholdAccept;
            this.thresholdReject   = thresholdReject;
            this.matchSourceName   = matchSourceName;

            store        = new Dictionary <AudioTrack, TrackStore>();
            collisionMap = new DictionaryCollisionMap();
        }
Beispiel #2
0
        protected FingerprintStore(IProfile profile, IFingerprintCollisionMap collisionMap, string matchSourceName)
        {
            FingerprintSize = DEFAULT_FINGERPRINT_SIZE;
            Threshold       = DEFAULT_THRESHOLD;
            this.profile    = profile;
            store           = new Dictionary <AudioTrack, List <SubFingerprintHash> >();

            this.collisionMap = collisionMap;

            /*
             * TODO to support processing of huge datasets (or machines with low memory),
             * the store could also be moved from Dictionary/Lists to SQLite, the database
             * written to disk (instead of in-memory like now) and the user given the
             * choice between them (or automatically chosen depending on the amount of data).
             */

            this.matchSourceName = matchSourceName;
        }
Beispiel #3
0
 public FingerprintStore(IProfile profile, IFingerprintCollisionMap collisionMap) : this(profile, collisionMap, "FP-HK02")
 {
     //
 }
Beispiel #4
0
 public FingerprintStore(IProfile profile, IFingerprintCollisionMap collisionMap) : base(profile, collisionMap, "FP-CP")
 {
     //
 }