io.github.fjank.sdc.DefaultKeyPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdc Show documentation
Show all versions of sdc Show documentation
Efficiently selecting spatially distributed keypoints for visual tracking.
The newest version!
package io.github.fjank.sdc;
/**
* Represents a KeyPoint i.e. a point feature found by one of many available KeyPoint
* detectors in OpenCV.
* @author Frank Karlstrøm - [email protected]
*/
public class DefaultKeyPoint implements KeyPoint {
private final int intXPos;
private final int intYPos;
private final float response;
/**
* Creates a new KeyPoint with the specified position and response.
* @param xPos the x position for this KeyPoint.
* @param yPos the y position for this KeyPoint.
* @param response the response, that is "how strong" the KeyPoint is.
*/
public DefaultKeyPoint(int xPos, int yPos, float response) {
this.intXPos = xPos;
this.intYPos = yPos;
this.response = response;
}
@Override
public float getResponse() {
return response;
}
@Override
public int getXPos() {
return intXPos;
}
@Override
public int getYPos() {
return intYPos;
}
}