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

org.bytedeco.opencv.opencv_shape.ShapeDistanceExtractor Maven / Gradle / Ivy

There is a newer version: 4.10.0-1.5.11
Show newest version
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE

package org.bytedeco.opencv.opencv_shape;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import org.bytedeco.opencv.opencv_core.*;
import static org.bytedeco.opencv.global.opencv_core.*;
import org.bytedeco.opencv.opencv_imgproc.*;
import static org.bytedeco.opencv.global.opencv_imgproc.*;
import static org.bytedeco.opencv.global.opencv_imgcodecs.*;
import org.bytedeco.opencv.opencv_videoio.*;
import static org.bytedeco.opencv.global.opencv_videoio.*;
import org.bytedeco.opencv.opencv_highgui.*;
import static org.bytedeco.opencv.global.opencv_highgui.*;
import org.bytedeco.opencv.opencv_flann.*;
import static org.bytedeco.opencv.global.opencv_flann.*;
import org.bytedeco.opencv.opencv_features2d.*;
import static org.bytedeco.opencv.global.opencv_features2d.*;
import org.bytedeco.opencv.opencv_calib3d.*;
import static org.bytedeco.opencv.global.opencv_calib3d.*;

import static org.bytedeco.opencv.global.opencv_shape.*;


/** \addtogroup shape
 *  \{

/** \example modules/shape/samples/shape_example.cpp An example using shape distance algorithm */ /** \brief Abstract base class for shape distance algorithms. */ @Namespace("cv") @Properties(inherit = org.bytedeco.opencv.presets.opencv_shape.class) public class ShapeDistanceExtractor extends Algorithm { static { Loader.load(); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ public ShapeDistanceExtractor(Pointer p) { super(p); } /** \brief Compute the shape distance between two shapes defined by its contours.

@param contour1 Contour defining first shape. @param contour2 Contour defining second shape. */ public native float computeDistance(@ByVal Mat contour1, @ByVal Mat contour2); public native float computeDistance(@ByVal UMat contour1, @ByVal UMat contour2); public native float computeDistance(@ByVal GpuMat contour1, @ByVal GpuMat contour2); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy