示例#1
0
 private extern static void CvLDetectorDetectKeyPoints(
     ref LDetector detector,
     IntPtr image,
     IntPtr keypoints,
     int maxCount,
     [MarshalAs(CvInvoke.BoolMarshalType)]
     bool scaleCoords);
示例#2
0
 private extern static void CvLDetectorDetectKeyPoints(
    ref LDetector detector,
    IntPtr image,
    IntPtr keypoints,
    int maxCount,
    [MarshalAs(CvInvoke.BoolMarshalType)]
    bool scaleCoords);
 private extern static void CvPlanarObjectDetectorTrain(
    IntPtr objectDetector,
    IntPtr image,
    int npoints,
    int patchSize,
    int nstructs,
    int structSize,
    int nviews,
    ref LDetector keyPointDetector,
    ref PatchGenerator patchGenerator);
 private extern static void CvPlanarObjectDetectorTrain(
     IntPtr objectDetector,
     IntPtr image,
     int npoints,
     int patchSize,
     int nstructs,
     int structSize,
     int nviews,
     ref LDetector keyPointDetector,
     ref PatchGenerator patchGenerator);
示例#5
0
 /// <summary>
 /// Train the planar object detector using the specific image
 /// </summary>
 /// <param name="image">The training image</param>
 /// <param name="npoints">Use 300 for default</param>
 /// <param name="patchSize">Use 31 for default</param>
 /// <param name="nstructs">Use 50 for default</param>
 /// <param name="structSize">Use 9 for default</param>
 /// <param name="nviews">Use 5000 for default</param>
 /// <param name="keyPointDetector">The keypoint detector to be used</param>
 /// <param name="patchGenerator">The patch generator to be used</param>
 public void Train(Image <Gray, byte> image,
                   int npoints,
                   int patchSize,
                   int nstructs,
                   int structSize,
                   int nviews,
                   ref LDetector keyPointDetector,
                   ref PatchGenerator patchGenerator)
 {
     CvInvoke.CvPlanarObjectDetectorTrain(Ptr, image, npoints, patchSize, nstructs, structSize, nviews, ref keyPointDetector, ref patchGenerator);
 }
 /// <summary>
 /// Train the planar object detector using the specific image
 /// </summary>
 /// <param name="image">The training image</param>
 /// <param name="npoints">Use 300 for default</param>
 /// <param name="patchSize">Use 31 for default</param>
 /// <param name="nstructs">Use 50 for default</param>
 /// <param name="structSize">Use 9 for default</param>
 /// <param name="nviews">Use 5000 for default</param>
 /// <param name="keyPointDetector">The keypoint detector to be used</param>
 /// <param name="patchGenerator">The patch generator to be used</param>
 public void Train(Image<Gray, byte> image,
    int npoints,
    int patchSize,
    int nstructs,
    int structSize,
    int nviews,
    ref LDetector keyPointDetector,
    ref PatchGenerator patchGenerator)
 {
    CvPlanarObjectDetectorTrain(Ptr, image, npoints, patchSize, nstructs, structSize, nviews, ref keyPointDetector, ref patchGenerator);
 }