org.opencv.img_hash.BlockMeanHash Maven / Gradle / Ivy
The newest version!
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.img_hash;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Mat;
import org.opencv.core.MatOfDouble;
import org.opencv.img_hash.BlockMeanHash;
import org.opencv.utils.Converters;
// C++: class BlockMeanHash
/**
* Image hash based on block mean.
*
* See CITE: zauner2010implementation for details.
*/
public class BlockMeanHash extends ImgHashBase {
protected BlockMeanHash(long addr) { super(addr); }
// internal usage only
public static BlockMeanHash __fromPtr__(long addr) { return new BlockMeanHash(addr); }
//
// C++: void cv::img_hash::BlockMeanHash::setMode(int mode)
//
/**
* Create BlockMeanHash object
* @param mode the mode
*/
public void setMode(int mode) {
setMode_0(nativeObj, mode);
}
//
// C++: vector_double cv::img_hash::BlockMeanHash::getMean()
//
public MatOfDouble getMean() {
return MatOfDouble.fromNativeAddr(getMean_0(nativeObj));
}
//
// C++: static Ptr_BlockMeanHash cv::img_hash::BlockMeanHash::create(int mode = BLOCK_MEAN_HASH_MODE_0)
//
public static BlockMeanHash create(int mode) {
return BlockMeanHash.__fromPtr__(create_0(mode));
}
public static BlockMeanHash create() {
return BlockMeanHash.__fromPtr__(create_1());
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: void cv::img_hash::BlockMeanHash::setMode(int mode)
private static native void setMode_0(long nativeObj, int mode);
// C++: vector_double cv::img_hash::BlockMeanHash::getMean()
private static native long getMean_0(long nativeObj);
// C++: static Ptr_BlockMeanHash cv::img_hash::BlockMeanHash::create(int mode = BLOCK_MEAN_HASH_MODE_0)
private static native long create_0(int mode);
private static native long create_1();
// native support for java finalize()
private static native void delete(long nativeObj);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy