com.machinezoo.sourceafis.ImmutableMinutia Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sourceafis Show documentation
Show all versions of sourceafis Show documentation
Fingerprint recognition engine that takes a pair of human fingerprint images and returns their similarity score. Supports efficient 1:N search.
// Part of SourceAFIS: https://sourceafis.machinezoo.com
package com.machinezoo.sourceafis;
class ImmutableMinutia {
final IntPoint position;
final double direction;
final MinutiaType type;
ImmutableMinutia(IntPoint position, double direction, MinutiaType type) {
this.position = position;
this.direction = direction;
this.type = type;
}
ImmutableMinutia(JsonMinutia json) {
position = new IntPoint(json.x, json.y);
direction = json.direction;
type = MinutiaType.BIFURCATION.json.equals(json.type) ? MinutiaType.BIFURCATION : MinutiaType.ENDING;
}
@Override public String toString() {
return String.format("%s @ %s angle %f", type.toString(), position.toString(), direction);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy