org.bytedeco.opencv.opencv_saliency.ObjectnessBING Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.5.10: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_saliency;
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 static org.bytedeco.opencv.global.opencv_saliency.*;
/************************************ Specific Objectness Specialized Classes ************************************/
/**
* \brief Objectness algorithms based on [3]
* [3] Cheng, Ming-Ming, et al. "BING: Binarized normed gradients for objectness estimation at 300fps." IEEE CVPR. 2014.
*/
/** \brief the Binarized normed gradients algorithm from \cite BING
*/
@Namespace("cv::saliency") @NoOffset @Properties(inherit = org.bytedeco.opencv.presets.opencv_saliency.class)
public class ObjectnessBING extends Objectness {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public ObjectnessBING(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public ObjectnessBING(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public ObjectnessBING position(long position) {
return (ObjectnessBING)super.position(position);
}
@Override public ObjectnessBING getPointer(long i) {
return new ObjectnessBING((Pointer)this).offsetAddress(i);
}
/** Downcast constructor. */
public ObjectnessBING(Saliency pointer) { super((Pointer)null); allocate(pointer); }
@Namespace private native @Name("dynamic_cast") void allocate(Saliency pointer);
/** Downcast constructor. */
public ObjectnessBING(Algorithm pointer) { super((Pointer)null); allocate(pointer); }
@Namespace private native @Name("dynamic_cast") void allocate(Algorithm pointer);
public ObjectnessBING() { super((Pointer)null); allocate(); }
private native void allocate();
public static native @Ptr ObjectnessBING create();
public native @Cast("bool") boolean computeSaliency( @ByVal Mat image, @ByVal Mat saliencyMap );
public native @Cast("bool") boolean computeSaliency( @ByVal UMat image, @ByVal UMat saliencyMap );
public native @Cast("bool") boolean computeSaliency( @ByVal GpuMat image, @ByVal GpuMat saliencyMap );
public native void read();
public native void write();
/** \brief Return the list of the rectangles' objectness value,
in the same order as the *vector\ objectnessBoundingBox* returned by the algorithm (in
computeSaliencyImpl function). The bigger value these scores are, it is more likely to be an
object window.
*/
public native @StdVector FloatPointer getobjectnessValues();
/** \brief This is a utility function that allows to set the correct path from which the algorithm will load
the trained model.
@param trainingPath trained model path
*/
public native void setTrainingPath( @Str BytePointer trainingPath );
public native void setTrainingPath( @Str String trainingPath );
/** \brief This is a utility function that allows to set an arbitrary path in which the algorithm will save the
optional results
(ie writing on file the total number and the list of rectangles returned by objectess, one for
each row).
@param resultsDir results' folder path
*/
public native void setBBResDir( @Str BytePointer resultsDir );
public native void setBBResDir( @Str String resultsDir );
public native double getBase();
public native void setBase(double val);
public native int getNSS();
public native void setNSS(int val);
public native int getW();
public native void setW(int val);
}