类 LATCH
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.features2d.Feature2D
-
- org.opencv.xfeatures2d.LATCH
-
public class LATCH extends Feature2D
用于计算 LATCH 描述符的 latch 类。如果您发现此代码有用,请在您的工作中添加对以下论文的引用:Gil Levi 和 Tal Hassner,“LATCH: Learned Arrangements of Three Patch Codes”,arXiv 预印本 arXiv:1501.03719, 2015 年 1 月 15 日。LATCH 是一种基于学习到的图像块三元组比较的二元描述符。 bytes 是描述符的大小 - 可以是 64、32、16、8、4、2 或 1。 rotationInvariance - 描述符是否应补偿方向变化。 half_ssd_size - 小块大小的一半大小。 例如,如果我们想比较大小为 7x7x 的图块三元组,则 half_ssd_size 应为 (7-1)/2 = 3。sigma - 用于高斯模糊平滑源图像的 sigma 值。 如果 sigma 值为 0,将使用未经平滑处理的源图像。 注意:描述符可以与任何关键点提取器耦合。 唯一的要求是,如果您使用 set rotationInvariance = True,则必须使用估计图块方向(以度为单位)的提取器。 此类提取器的示例是 ORB 和 SIFT。 注意:完整的示例可以在 /samples/cpp/tutorial_code/xfeatures2D/latch_match.cpp 下找到
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护LATCH(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static LATCH__fromPtr__(long addr)static LATCHcreate()static LATCHcreate(int bytes)static LATCHcreate(int bytes, boolean rotationInvariance)static LATCHcreate(int bytes, boolean rotationInvariance, int half_ssd_size)static LATCHcreate(int bytes, boolean rotationInvariance, int half_ssd_size, double sigma)protected voidfinalize()intgetBytes()java.lang.StringgetDefaultName()返回算法字符串标识符。intgetHalfSSDsize()booleangetRotationInvariance()doublegetSigma()voidsetBytes(int bytes)voidsetHalfSSDsize(int half_ssd_size)voidsetRotationInvariance(boolean rotationInvariance)voidsetSigma(double sigma)-
从类 org.opencv.features2d.Feature2D 继承的方法
compute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detectAndCompute, detectAndCompute, empty, read, write
-
从类 org.opencv.core.Algorithm 继承的方法
clear, getNativeObjAddr, save
-
-
-
-
方法详细信息
-
__fromPtr__
public static LATCH __fromPtr__(long addr)
-
create
public static LATCH create(int bytes, boolean rotationInvariance, int half_ssd_size, double sigma)
-
create
public static LATCH create(int bytes, boolean rotationInvariance, int half_ssd_size)
-
create
public static LATCH create(int bytes, boolean rotationInvariance)
-
create
public static LATCH create(int bytes)
-
create
public static LATCH create()
-
setBytes
public void setBytes(int bytes)
-
getBytes
public int getBytes()
-
setRotationInvariance
public void setRotationInvariance(boolean rotationInvariance)
-
getRotationInvariance
public boolean getRotationInvariance()
-
setHalfSSDsize
public void setHalfSSDsize(int half_ssd_size)
-
getHalfSSDsize
public int getHalfSSDsize()
-
setSigma
public void setSigma(double sigma)
-
getSigma
public double getSigma()
-
getDefaultName
public java.lang.String getDefaultName()
从类复制的描述:Algorithm返回算法字符串标识符。 当对象保存到文件或字符串时,此字符串用作顶级 xml/yml 节点标记。- 重写
getDefaultName在类中Feature2D- 返回
- 自动生成
-
-