org.bytedeco.opencv.opencv_imgproc.CvMoments Maven / Gradle / Ivy
// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_imgproc;
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 static org.bytedeco.opencv.global.opencv_imgproc.*;
/** Spatial and central moments */
@Properties(inherit = org.bytedeco.opencv.presets.opencv_imgproc.class)
public class CvMoments extends AbstractCvMoments {
static { Loader.load(); }
/** Default native constructor. */
public CvMoments() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public CvMoments(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public CvMoments(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public CvMoments position(long position) {
return (CvMoments)super.position(position);
}
@Override public CvMoments getPointer(long i) {
return new CvMoments((Pointer)this).offsetAddress(i);
}
/** spatial moments */
public native double m00(); public native CvMoments m00(double setter);
public native double m10(); public native CvMoments m10(double setter);
public native double m01(); public native CvMoments m01(double setter);
public native double m20(); public native CvMoments m20(double setter);
public native double m11(); public native CvMoments m11(double setter);
public native double m02(); public native CvMoments m02(double setter);
public native double m30(); public native CvMoments m30(double setter);
public native double m21(); public native CvMoments m21(double setter);
public native double m12(); public native CvMoments m12(double setter);
public native double m03(); public native CvMoments m03(double setter);
/** central moments */
public native double mu20(); public native CvMoments mu20(double setter);
public native double mu11(); public native CvMoments mu11(double setter);
public native double mu02(); public native CvMoments mu02(double setter);
public native double mu30(); public native CvMoments mu30(double setter);
public native double mu21(); public native CvMoments mu21(double setter);
public native double mu12(); public native CvMoments mu12(double setter);
public native double mu03(); public native CvMoments mu03(double setter);
/** m00 != 0 ? 1/sqrt(m00) : 0 */
public native double inv_sqrt_m00(); public native CvMoments inv_sqrt_m00(double setter);
// #if defined(CV__ENABLE_C_API_CTORS) && defined(__cplusplus)
// #endif
}