🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.xfeatures2d
クラス BoostDesc
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.features2d.Feature2D
-
- org.opencv.xfeatures2d.BoostDesc
public class BoostDesc extends Feature2D
CITE: Trzcinski13a および CITE: Trzcinski13b で説明されている BoostDesc (Learning Image Descriptors with Boosting) を実装するクラス。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 を指すが、勾配のビニングの種類が異なる。ASSIGN_HARD ビニング種別を用いる BGM_HARD では、勾配は最も近い向きのビンに割り当てられる。ASSIGN_BILINEAR ビニング種別を用いる BGM_BILINEAR では、勾配は隣接する2つのビンに割り当てられる。ASSIGN_SOFT ビニング種別を用いる BGM およびその他すべてのモードでは、勾配は勾配角度とビン中心とのコサイン値に応じて最も近い8つのビンに割り当てられる。LBGM (別名 FP-Boost) は浮動小数点拡張であり、各次元は弱学習器の応答の線形結合として計算される。BINBOOST とその派生は LBGM のバイナリ拡張であり、各ビットは弱学習器の集合のしきい値付き線形結合として計算される。BoostDesc のヘッダファイル (boostdesc_*.i) は、samples サブフォルダにある export-boostdesc.py スクリプトを用いてオリジナルのバイナリからエクスポートされた。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedBoostDesc​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description 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)java.lang.StringgetDefaultName()Returns the algorithm string identifier.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()
Description copied from class:AlgorithmReturns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.- オーバーライド:
- クラス
Feature2D内のgetDefaultName - 戻り値:
- 自動生成
-
setUseScaleOrientation
public void setUseScaleOrientation​(boolean use_scale_orientation)
-
getUseScaleOrientation
public boolean getUseScaleOrientation()
-
setScaleFactor
public void setScaleFactor​(float scale_factor)
-
getScaleFactor
public float getScaleFactor()
-
-