예제 #1
0
 public static extern float CvGBTreesPredict(
     IntPtr model,
     IntPtr sample,
     IntPtr missing,
     IntPtr weakResponses,
     ref Emgu.CV.Structure.MCvSlice slice,
     [MarshalAs(CvInvoke.BoolMarshalType)]
     bool rawMode);
예제 #2
0
파일: GBTrees.cs 프로젝트: TaNeRs/SSSS
 /// <summary>
 /// The method takes the feature vector and the optional missing measurement mask on input, traverses the random tree and returns the cumulative result from all the trees in the forest (the class that receives the majority of voices, or the mean of the regression function estimates)
 /// </summary>
 /// <param name="sample">The sample to be predicted</param>
 /// <param name="missingDataMask">Can be null if not needed. When specified, it is an 8-bit matrix of the same size as <i>trainData</i>, is used to mark the missed values (non-zero elements of the mask)</param>
 /// <param name="weakResponses">Can be null if not needed. a floating-point vector, of responses from each individual weak classifier. The number of elements in the vector must be equal to the slice length.</param>
 /// <param name="slice">The continuous subset of the sequence of weak classifiers to be used for prediction</param>
 /// <param name="rawMode">Normally set to false that implies a regular input. If it is true, the method assumes that all the values of the discrete input variables have been already normalized to 0..num_of_categoriesi-1 ranges. (as the decision tree uses such normalized representation internally). It is useful for faster prediction with tree ensembles. For ordered input variables the flag is not used. </param>    
 /// <returns>The cumulative result from all the trees in the forest (the class that receives the majority of voices, or the mean of the regression function estimates)</returns>
 public float Predict(
  Matrix<float> sample,
  Matrix<Byte> missingDataMask,
  Matrix<float> weakResponses,
  MCvSlice slice,
  bool rawMode
  )
 {
     return MlInvoke.CvGBTreesPredict(
     _ptr,
     sample.Ptr,
     missingDataMask == null ? IntPtr.Zero : missingDataMask.Ptr,
     weakResponses == null ? IntPtr.Zero : weakResponses.Ptr,
     slice,
     rawMode);
 }
예제 #3
0
 public static extern IntPtr GetRegion(IntPtr gpuMat, ref MCvSlice rowRange, ref MCvSlice colRange);
예제 #4
0
 public static extern double cvArcLength(IntPtr curve, MCvSlice slice, int isClosed);
예제 #5
0
 public static extern double cvContourArea(IntPtr contour, MCvSlice slice, int oriented);