コード例 #1
0
ファイル: MatchCollector.cs プロジェクト: AmirAbrams/noid-1
        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);
                }
            };
        }
コード例 #2
0
ファイル: LogDecoder.cs プロジェクト: AmirAbrams/noid-1
        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");
        }
コード例 #3
0
ファイル: ProbeMatchData.cs プロジェクト: AmirAbrams/noid-1
 public ProbeMatchData(ExtractionData extraction, MatchData match)
 {
     ExtractionData = extraction;
     Match          = match;
 }
コード例 #4
0
 public CandidateMatchData(ExtractionData extraction, MatchData match)
 {
     ExtractionData = extraction;
     Match          = match;
 }