Class ChessboardDistanceMetric
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.distance.AbstractDistanceMetric
-
- science.aist.imaging.core.imageprocessing.distance.ChessboardDistanceMetric
-
public class ChessboardDistanceMetric extends AbstractDistanceMetric
Chessboard Distance implementation of the
AbstractDistanceMetric
A chessboard distance with masksize = 5 would look like the following:
chessboard distance with masksize = 5 2 2 2 2 2 2 1 1 1 2 2 1 0 1 2 2 1 1 1 2 2 2 2 2 2 - Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description ChessboardDistanceMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calculateMaskValue(int x, int y)
Method which calculates the mask value at the given position-
Methods inherited from class science.aist.imaging.core.imageprocessing.distance.AbstractDistanceMetric
create
-
-
-
-
Method Detail
-
calculateMaskValue
protected double calculateMaskValue(int x, int y)
Description copied from class:AbstractDistanceMetric
Method which calculates the mask value at the given position- Specified by:
calculateMaskValue
in classAbstractDistanceMetric
- Parameters:
x
- x positiony
- y position- Returns:
- mask value for the given position
-
-