Ejemplo n.º 1
0
        public MatchCollector(ExtractionData probe, ExtractionData candidate)
        {
            var tree = new ObjectTree(Matcher);

            tree.Remove("MinutiaMatcher.EdgeTablePrototype");
            tree.Remove("MinutiaMatcher.RootSelector");
            tree.Remove("MinutiaMatcher.Pairing");
            tree.Remove("MinutiaMatcher.MatchScoring");
            Logger.Attach(tree);

            Collect(probe.Template, candidate.Template);
            probe.PropertyChanged += (source, args) =>
            {
                if (args.PropertyName == "Template")
                {
                    Collect(probe.Template, candidate.Template);
                }
            };
            candidate.PropertyChanged += (source, args) =>
            {
                if (args.PropertyName == "Template")
                {
                    Collect(probe.Template, candidate.Template);
                }
            };
        }
Ejemplo n.º 2
0
        public void Initialize(Options options)
        {
            Probe     = new ExtractionData();
            Candidate = new ExtractionData();

            Match = new MatchData(this);

            ProbeLog        = new ExtractionCollector(options.Probe);
            Probe.Collector = ProbeLog;

            CandidateLog        = new ExtractionCollector(options.Candidate);
            Candidate.Collector = CandidateLog;

            MatchLog        = new MatchCollector(Probe, Candidate);
            Match.Collector = MatchLog;

            NotifyPropertyChanged("Probe");
            NotifyPropertyChanged("Candidate");
            NotifyPropertyChanged("Match");
        }
Ejemplo n.º 3
0
 public ProbeMatchData(ExtractionData extraction, MatchData match)
 {
     ExtractionData = extraction;
     Match          = match;
 }
Ejemplo n.º 4
0
 public CandidateMatchData(ExtractionData extraction, MatchData match)
 {
     ExtractionData = extraction;
     Match          = match;
 }