All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.machinezoo.sourceafis.ImmutableMinutia Maven / Gradle / Ivy

Go to download

Fingerprint recognition engine that takes a pair of human fingerprint images and returns their similarity score. Supports efficient 1:N search.

There is a newer version: 3.18.1
Show newest version
// 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