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

org.opencv.xfeatures2d.VGG Maven / Gradle / Ivy

There is a newer version: 4.10.0-1.5.11
Show newest version
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.xfeatures2d;

import org.opencv.features2d.Feature2D;
import org.opencv.xfeatures2d.VGG;

// C++: class VGG
/**
 * Class implementing VGG (Oxford Visual Geometry Group) descriptor trained end to end
 * using "Descriptor Learning Using Convex Optimisation" (DLCO) aparatus described in CITE: Simonyan14.
 *
 * desc type of descriptor to use, VGG::VGG_120 is default (120 dimensions float)
 * Available types are VGG::VGG_120, VGG::VGG_80, VGG::VGG_64, VGG::VGG_48
 * isigma gaussian kernel value for image blur (default is 1.4f)
 * img_normalize use image sample intensity normalization (enabled by default)
 * use_orientation sample patterns using keypoints orientation, enabled by default
 * scale_factor adjust the sampling window of detected keypoints to 64.0f (VGG sampling window)
 * 6.25f is default and fits for KAZE, SURF detected keypoints window ratio
 * 6.75f should be the scale for SIFT detected keypoints window ratio
 * 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio
 * 0.75f should be the scale for ORB keypoints ratio
 *
 * dsc_normalize clamp descriptors to 255 and convert to uchar CV_8UC1 (disabled by default)
 */
public class VGG extends Feature2D {

    protected VGG(long addr) { super(addr); }

    // internal usage only
    public static VGG __fromPtr__(long addr) { return new VGG(addr); }

    //
    // C++: static Ptr_VGG cv::xfeatures2d::VGG::create(int desc = VGG::VGG_120, float isigma = 1.4f, bool img_normalize = true, bool use_scale_orientation = true, float scale_factor = 6.25f, bool dsc_normalize = false)
    //

    public static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor, boolean dsc_normalize) {
        return VGG.__fromPtr__(create_0(desc, isigma, img_normalize, use_scale_orientation, scale_factor, dsc_normalize));
    }

    public static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor) {
        return VGG.__fromPtr__(create_1(desc, isigma, img_normalize, use_scale_orientation, scale_factor));
    }

    public static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation) {
        return VGG.__fromPtr__(create_2(desc, isigma, img_normalize, use_scale_orientation));
    }

    public static VGG create(int desc, float isigma, boolean img_normalize) {
        return VGG.__fromPtr__(create_3(desc, isigma, img_normalize));
    }

    public static VGG create(int desc, float isigma) {
        return VGG.__fromPtr__(create_4(desc, isigma));
    }

    public static VGG create(int desc) {
        return VGG.__fromPtr__(create_5(desc));
    }

    public static VGG create() {
        return VGG.__fromPtr__(create_6());
    }


    //
    // C++:  bool cv::xfeatures2d::VGG::getUseNormalizeDescriptor()
    //

    public boolean getUseNormalizeDescriptor() {
        return getUseNormalizeDescriptor_0(nativeObj);
    }


    //
    // C++:  bool cv::xfeatures2d::VGG::getUseNormalizeImage()
    //

    public boolean getUseNormalizeImage() {
        return getUseNormalizeImage_0(nativeObj);
    }


    //
    // C++:  bool cv::xfeatures2d::VGG::getUseScaleOrientation()
    //

    public boolean getUseScaleOrientation() {
        return getUseScaleOrientation_0(nativeObj);
    }


    //
    // C++:  float cv::xfeatures2d::VGG::getScaleFactor()
    //

    public float getScaleFactor() {
        return getScaleFactor_0(nativeObj);
    }


    //
    // C++:  float cv::xfeatures2d::VGG::getSigma()
    //

    public float getSigma() {
        return getSigma_0(nativeObj);
    }


    //
    // C++:  void cv::xfeatures2d::VGG::setScaleFactor(float scale_factor)
    //

    public void setScaleFactor(float scale_factor) {
        setScaleFactor_0(nativeObj, scale_factor);
    }


    //
    // C++:  void cv::xfeatures2d::VGG::setSigma(float isigma)
    //

    public void setSigma(float isigma) {
        setSigma_0(nativeObj, isigma);
    }


    //
    // C++:  void cv::xfeatures2d::VGG::setUseNormalizeDescriptor(bool dsc_normalize)
    //

    public void setUseNormalizeDescriptor(boolean dsc_normalize) {
        setUseNormalizeDescriptor_0(nativeObj, dsc_normalize);
    }


    //
    // C++:  void cv::xfeatures2d::VGG::setUseNormalizeImage(bool img_normalize)
    //

    public void setUseNormalizeImage(boolean img_normalize) {
        setUseNormalizeImage_0(nativeObj, img_normalize);
    }


    //
    // C++:  void cv::xfeatures2d::VGG::setUseScaleOrientation(bool use_scale_orientation)
    //

    public void setUseScaleOrientation(boolean use_scale_orientation) {
        setUseScaleOrientation_0(nativeObj, use_scale_orientation);
    }


    @Override
    protected void finalize() throws Throwable {
        delete(nativeObj);
    }



    // C++: static Ptr_VGG cv::xfeatures2d::VGG::create(int desc = VGG::VGG_120, float isigma = 1.4f, bool img_normalize = true, bool use_scale_orientation = true, float scale_factor = 6.25f, bool dsc_normalize = false)
    private static native long create_0(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor, boolean dsc_normalize);
    private static native long create_1(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor);
    private static native long create_2(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation);
    private static native long create_3(int desc, float isigma, boolean img_normalize);
    private static native long create_4(int desc, float isigma);
    private static native long create_5(int desc);
    private static native long create_6();

    // C++:  bool cv::xfeatures2d::VGG::getUseNormalizeDescriptor()
    private static native boolean getUseNormalizeDescriptor_0(long nativeObj);

    // C++:  bool cv::xfeatures2d::VGG::getUseNormalizeImage()
    private static native boolean getUseNormalizeImage_0(long nativeObj);

    // C++:  bool cv::xfeatures2d::VGG::getUseScaleOrientation()
    private static native boolean getUseScaleOrientation_0(long nativeObj);

    // C++:  float cv::xfeatures2d::VGG::getScaleFactor()
    private static native float getScaleFactor_0(long nativeObj);

    // C++:  float cv::xfeatures2d::VGG::getSigma()
    private static native float getSigma_0(long nativeObj);

    // C++:  void cv::xfeatures2d::VGG::setScaleFactor(float scale_factor)
    private static native void setScaleFactor_0(long nativeObj, float scale_factor);

    // C++:  void cv::xfeatures2d::VGG::setSigma(float isigma)
    private static native void setSigma_0(long nativeObj, float isigma);

    // C++:  void cv::xfeatures2d::VGG::setUseNormalizeDescriptor(bool dsc_normalize)
    private static native void setUseNormalizeDescriptor_0(long nativeObj, boolean dsc_normalize);

    // C++:  void cv::xfeatures2d::VGG::setUseNormalizeImage(bool img_normalize)
    private static native void setUseNormalizeImage_0(long nativeObj, boolean img_normalize);

    // C++:  void cv::xfeatures2d::VGG::setUseScaleOrientation(bool use_scale_orientation)
    private static native void setUseScaleOrientation_0(long nativeObj, boolean use_scale_orientation);

    // native support for java finalize()
    private static native void delete(long nativeObj);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy