-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFingerPrintProcessingBlockComponents.cs
executable file
·51 lines (43 loc) · 2.01 KB
/
FingerPrintProcessingBlockComponents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BIO.Framework.Extensions.Emgu.InputData;
using BIO.Framework.Extensions.Emgu.FeatureVector;
using BIO.Framework.Extensions.Standard.Template;
using BIO.Framework.Extensions.Standard.Block;
using BIO.Framework.Extensions.Standard.Comparator;
using BIO.Framework.Core.Comparator;
namespace BIO.Project.FingerPrintRecognition
{
class FingerPrintProcessingBlockComponents : InputDataProcessingBlockSettings<
EmguGrayImageInputData,
FingerPrintFeatureVector,
Template<FingerPrintFeatureVector>,
FingerPrintFeatureVector>
{
public FingerPrintProcessingBlockComponents() : base("fingerPrint") {
}
protected override Framework.Core.FeatureVector.IFeatureVectorExtractor<EmguGrayImageInputData, FingerPrintFeatureVector> createTemplatedFeatureVectorExtractor() {
return new FingerPrintFeatureVectorExtractor();
}
protected override Framework.Core.FeatureVector.IFeatureVectorExtractor<EmguGrayImageInputData, FingerPrintFeatureVector> createEvaluationFeatureVectorExtractor()
{
return new FingerPrintFeatureVectorExtractor();
}
protected override Framework.Core.Comparator.IComparator<FingerPrintFeatureVector, Template<FingerPrintFeatureVector>, FingerPrintFeatureVector> createComparator()
{
return
new Comparator<FingerPrintFeatureVector, Template<FingerPrintFeatureVector>, FingerPrintFeatureVector>(
CreateFeatureVectorComparator(), CreateScoreSelector());
}
private static IFeatureVectorComparator<FingerPrintFeatureVector, FingerPrintFeatureVector> CreateFeatureVectorComparator()
{
return new FingerPrintComparator();
}
private static IScoreSelector CreateScoreSelector() {
return new MinScoreSelector();
}
}
}