类 ImgHashBase
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.img_hash.ImgHashBase
-
public class ImgHashBase extends Algorithm
图像哈希算法的基类
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护ImgHashBase(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static ImgHashBase__fromPtr__(long addr)doublecompare(Mat hashOne, Mat hashTwo)比较 inOne 和 inTwo 之间的哈希值voidcompute(Mat inputArr, Mat outputArr)计算输入图像的哈希值protected voidfinalize()-
从类 org.opencv.core.Algorithm 继承的方法
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
方法详细信息
-
__fromPtr__
public static ImgHashBase __fromPtr__(long addr)
-
compute
public void compute(Mat inputArr, Mat outputArr)
计算输入图像的哈希值- 参数
inputArr- 想要计算哈希值的输入图像outputArr- 图像的哈希值
-
compare
public double compare(Mat hashOne, Mat hashTwo)
比较 inOne 和 inTwo 之间的哈希值- 参数
hashOne- 哈希值一hashTwo- 哈希值二- 返回
- value 表示 inOne 和 inTwo 之间的相似性,值的含义因算法而异
-
-