类 BoostDesc
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.features2d.Feature2D
-
- org.opencv.xfeatures2d.BoostDesc
-
public class BoostDesc extends Feature2D
实现 BoostDesc (使用 Boosting 学习图像描述符) 的类,描述于 CITE: Trzcinski13a 和 CITE: Trzcinski13b。 desc 要使用的描述符类型,BoostDesc::BINBOOST_256 是默认值(256 位长度维度)可用类型有:BoostDesc::BGM、BoostDesc::BGM_HARD、BoostDesc::BGM_BILINEAR、BoostDesc::LBGM、BoostDesc::BINBOOST_64、BoostDesc::BINBOOST_128、BoostDesc::BINBOOST_256 use_orientation 使用关键点方向采样模式,默认启用 scale_factor 调整检测到的关键点的采样窗口 6.25f 是默认值,适用于 KAZE、SURF 检测到的关键点窗口比例 6.75f 应该是 SIFT 检测到的关键点窗口比例 5.00f 应该是 AKAZE、MSD、AGAST、FAST、BRISK 关键点窗口比例 0.75f 应该是 ORB 关键点比例 1.50f 是原始实现中的默认值 注意: BGM 是基本描述符,其中每个二进制维度都计算为单个弱学习器的输出。 BGM_HARD 和 BGM_BILINEAR 指的是同一个 BGM,但使用不同类型的梯度分箱。 在 BGM_HARD 中,使用 ASSIGN_HARD 分箱类型,梯度被分配到最近的方向箱。 在 BGM_BILINEAR 中,使用 ASSIGN_BILINEAR 分箱类型,梯度被分配到两个相邻的箱。 在 BGM 和所有其他使用 ASSIGN_SOFT 分箱模式的模式中,梯度根据梯度角度和箱中心之间的余弦值分配到 8 个最近的箱。 LBGM(别名 FP-Boost)是浮点扩展,其中每个维度都计算为弱学习器响应的线性组合。 BINBOOST 和子变体是 LBGM 的二进制扩展,其中每个位都计算为一组弱学习器的阈值线性组合。 BoostDesc 头文件 (boostdesc_*.i) 是从原始二进制文件中使用 samples 子文件夹中的 export-boostdesc.py 脚本导出的。
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护BoostDesc(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static BoostDesc__fromPtr__(long addr)static BoostDesccreate()static BoostDesccreate(int desc)static BoostDesccreate(int desc, boolean use_scale_orientation)static BoostDesccreate(int desc, boolean use_scale_orientation, float scale_factor)protected voidfinalize()java.lang.StringgetDefaultName()返回算法字符串标识符。floatgetScaleFactor()booleangetUseScaleOrientation()voidsetScaleFactor(float scale_factor)voidsetUseScaleOrientation(boolean use_scale_orientation)-
从类继承的方法 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 BoostDesc __fromPtr__(long addr)
-
create
public static BoostDesc create(int desc, boolean use_scale_orientation, float scale_factor)
-
create
public static BoostDesc create(int desc, boolean use_scale_orientation)
-
create
public static BoostDesc create(int desc)
-
create
public static BoostDesc create()
-
getDefaultName
public java.lang.String getDefaultName()
从类复制的描述:Algorithm返回算法字符串标识符。 当对象保存到文件或字符串时,此字符串用作顶级 xml/yml 节点标签。- 重写
getDefaultName在类中Feature2D- 返回
- 自动生成
-
setUseScaleOrientation
public void setUseScaleOrientation(boolean use_scale_orientation)
-
getUseScaleOrientation
public boolean getUseScaleOrientation()
-
setScaleFactor
public void setScaleFactor(float scale_factor)
-
getScaleFactor
public float getScaleFactor()
-
-