/// <summary> /// SURFのデフォルトパラメータを生成する /// </summary> /// <param name="hessianThreshold">keypoint.hessian の値がこの閾値よりも大きい特徴だけが検出される</param> /// <param name="extended">false:基本的なディスクリプタ(64要素), true:拡張されたディスクリプタ(128要素)</param> #else /// <summary> /// Creates SURF default parameters /// </summary> /// <param name="hessianThreshold">Only features with keypoint.hessian larger than that are extracted. </param> /// <param name="extended">false means basic descriptors (64 elements each), true means _extended descriptors (128 elements each) </param> #endif public CvSURFParams(double hessianThreshold, bool extended) { _p = CvInvoke.cvSURFParams(hessianThreshold, extended); }
/// <summary> /// SURFのデフォルトパラメータを生成する /// </summary> /// <param name="hessianThreshold">keypoint.hessian の値がこの閾値よりも大きい特徴だけが検出される</param> /// <param name="extended">false:基本的なディスクリプタ(64要素), true:拡張されたディスクリプタ(128要素)</param> #else /// <summary> /// Creates SURF default parameters /// </summary> /// <param name="hessianThreshold">Only features with keypoint.hessian larger than that are extracted. </param> /// <param name="extended">false means basic descriptors (64 elements each), true means _extended descriptors (128 elements each) </param> #endif public CvSURFParams(double hessianThreshold, bool extended) { _p = NativeMethods.cvSURFParams(hessianThreshold, extended); }
public static extern void cvExtractSURF(IntPtr image, IntPtr mask, ref IntPtr keypoints, ref IntPtr descriptors, IntPtr storage, WCvSURFParams parameters, [MarshalAs(UnmanagedType.Bool)] bool useProvidedKeyPts);