🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス SURF_CUDA


  • public class SURF_CUDA
    extends java.lang.Object
    Class used for extracting Speeded Up Robust Features (SURF) from an image. : The class SURF_CUDA implements Speeded Up Robust Features descriptor. There is a fast multi-scale Hessian keypoint detector that can be used to find the keypoints (which is the default option). But the descriptors can also be computed for the user-specified keypoints. Only 8-bit grayscale images are supported. The class SURF_CUDA can store results in the GPU and CPU memory. It provides functions to convert results between CPU and GPU version ( uploadKeypoints, downloadKeypoints, downloadDescriptors ). The format of CPU results is the same as SURF results. GPU results are stored in GpuMat. The keypoints matrix is \(\texttt{nFeatures} \times 7\) matrix with the CV_32FC1 type.
    • keypoints.ptr<float>(X_ROW)[i]は、i番目の特徴のx座標を格納する。
    • keypoints.ptr<float>(Y_ROW)[i]は、i番目の特徴のy座標を格納する。
    • keypoints.ptr<float>(LAPLACIAN_ROW)[i]は、i番目の特徴のラプラシアン符号を格納する。
    • keypoints.ptr<float>(OCTAVE_ROW)[i]は、i番目の特徴のオクターブを格納する。
    • keypoints.ptr<float>(SIZE_ROW)[i]は、i番目の特徴のサイズを格納する。
    • keypoints.ptr<float>(ANGLE_ROW)[i]は、i番目の特徴の方向を格納する。
    • keypoints.ptr<float>(HESSIAN_ROW)[i]は、i番目の特徴の応答を格納する。
    The descriptors matrix is \(\texttt{nFeatures} \times \texttt{descriptorSize}\) matrix with the CV_32FC1 type. The class SURF_CUDA uses some buffers and provides access to it. All buffers can be safely released between function calls. SEE: SURF 覚え書き:
    • GPU上でSURFキーポイントマッチャーを使用する例は、opencv_source_code/samples/gpu/surf_keypoint_matcher.cpp にある
    • コンストラクタの詳細

      • SURF_CUDA

        protected SURF_CUDA​(long addr)
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static SURF_CUDA __fromPtr__​(long addr)
      • create

        public static SURF_CUDA create​(double _hessianThreshold,
                                       int _nOctaves,
                                       int _nOctaveLayers,
                                       boolean _extended,
                                       float _keypointsRatio,
                                       boolean _upright)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。
        _nOctaves - キーポイント検出器が使用するピラミッドのオクターブ数。
        _nOctaveLayers - 各オクターブ内のオクターブレイヤー数。
        _extended - 拡張記述子フラグ (true - 128要素の拡張記述子を使用; false - 64要素の記述子を使用)。
        _keypointsRatio - 特徴の最大数を制限する
        _upright - アップライト(回転なし)または回転特徴フラグ (true - 特徴の方向を計算しない; false - 方向を計算する)。
        戻り値:
        自動生成
      • create

        public static SURF_CUDA create​(double _hessianThreshold,
                                       int _nOctaves,
                                       int _nOctaveLayers,
                                       boolean _extended,
                                       float _keypointsRatio)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。
        _nOctaves - キーポイント検出器が使用するピラミッドのオクターブ数。
        _nOctaveLayers - 各オクターブ内のオクターブレイヤー数。
        _extended - 拡張記述子フラグ (true - 128要素の拡張記述子を使用; false - 64要素の記述子を使用)。
        _keypointsRatio - 特徴の最大数を制限する false - 方向を計算する)。
        戻り値:
        自動生成
      • create

        public static SURF_CUDA create​(double _hessianThreshold,
                                       int _nOctaves,
                                       int _nOctaveLayers,
                                       boolean _extended)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。
        _nOctaves - キーポイント検出器が使用するピラミッドのオクターブ数。
        _nOctaveLayers - 各オクターブ内のオクターブレイヤー数。
        _extended - 拡張記述子フラグ (true - 128要素の拡張記述子を使用; false - 64要素の記述子を使用)。false - 方向を計算する)。
        戻り値:
        自動生成
      • create

        public static SURF_CUDA create​(double _hessianThreshold,
                                       int _nOctaves,
                                       int _nOctaveLayers)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。
        _nOctaves - キーポイント検出器が使用するピラミッドのオクターブ数。
        _nOctaveLayers - 各オクターブ内のオクターブレイヤー数。64要素の記述子を使用)。false - 方向を計算する)。
        戻り値:
        自動生成
      • create

        public static SURF_CUDA create​(double _hessianThreshold,
                                       int _nOctaves)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。
        _nOctaves - キーポイント検出器が使用するピラミッドのオクターブ数。64要素の記述子を使用)。false - 方向を計算する)。
        戻り値:
        自動生成
      • create

        public static SURF_CUDA create​(double _hessianThreshold)
        引数:
        _hessianThreshold - SURFで使用されるヘシアンキーポイント検出器のしきい値。64要素の記述子を使用)。false - 方向を計算する)。
        戻り値:
        自動生成
      • descriptorSize

        public int descriptorSize()
      • defaultNorm

        public int defaultNorm()
      • get_hessianThreshold

        public double get_hessianThreshold()
      • get_nOctaves

        public int get_nOctaves()
      • get_nOctaveLayers

        public int get_nOctaveLayers()
      • get_extended

        public boolean get_extended()
      • get_upright

        public boolean get_upright()
      • get_keypointsRatio

        public float get_keypointsRatio()