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

io.github.fjank.sdc.DefaultKeyPoint Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy