-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTransparencyKeys.java
More file actions
75 lines (73 loc) · 2.18 KB
/
TransparencyKeys.java
File metadata and controls
75 lines (73 loc) · 2.18 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Part of SourceAFIS Transparency API: https://sourceafis.machinezoo.com/transparency/
package com.machinezoo.sourceafis.transparency;
import static java.util.stream.Collectors.*;
import java.util.*;
import com.machinezoo.sourceafis.transparency.keys.*;
import com.machinezoo.sourceafis.transparency.types.*;
class TransparencyKeys {
static final List<TransparencyKey<?>> ALL;
static final Map<String, TransparencyKey<?>> BY_NAME;
static {
var all = new ArrayList<TransparencyKey<?>>();
all.addAll(List.of(
new InputImageKey(),
new InputGrayscaleKey(),
new VersionKey(),
new DecodedImageKey(),
new ScaledImageKey(),
new BlocksKey(),
new HistogramKey(),
new SmoothedHistogramKey(),
new ContrastKey(),
new AbsoluteContrastMaskKey(),
new RelativeContrastMaskKey(),
new CombinedMaskKey(),
new FilteredMaskKey(),
new EqualizedImageKey(),
new PixelwiseOrientationKey(),
new BlockOrientationKey(),
new SmoothedOrientationKey(),
new ParallelSmoothingKey(),
new OrthogonalSmoothingKey(),
new BinarizedImageKey(),
new FilteredBinaryImageKey(),
new PixelMaskKey(),
new InnerMaskKey()));
for (var skeleton : SkeletonType.values()) {
all.addAll(List.of(
new BinarizedSkeletonKey(skeleton),
new ThinnedSkeletonKey(skeleton),
new TracedSkeletonKey(skeleton),
new RemovedDotsKey(skeleton),
new RemovedPoresKey(skeleton),
new RemovedGapsKey(skeleton),
new RemovedTailsKey(skeleton),
new RemovedFragmentsKey(skeleton)));
}
all.addAll(List.of(
new SkeletonMinutiaeKey(),
new InnerMinutiaeKey(),
new RemovedMinutiaCloudsKey(),
new TopMinutiaeKey(),
new ShuffledMinutiaeKey(),
new EdgeTableKey(),
new OutputTemplateKey(),
new InputTemplateKey(),
new EdgeHashKey(),
new ProbeImageKey(),
new ProbeGrayscaleKey(),
new ProbeTemplateKey(),
new CandidateImageKey(),
new CandidateGrayscaleKey(),
new CandidateTemplateKey(),
new RootsKey(),
new PairingKey(),
new ScoreKey(),
new BestPairingKey(),
new BestScoreKey(),
new BestMatchKey(),
new OutputScoreKey()));
ALL = Collections.unmodifiableList(all);
BY_NAME = all.stream().collect(toMap(k -> k.name(), k -> k));
}
}