示例#1
0
 /// <summary>
 /// Creates a StructuredEdgeDetection
 /// </summary>
 /// <param name="model">name of the file where the model is stored</param>
 /// <param name="howToGetFeatures">optional object inheriting from RFFeatureGetter.
 /// You need it only if you would like to train your own forest, pass null otherwise</param>
 /// <returns></returns>
 public static StructuredEdgeDetection CreateStructuredEdgeDetection(string model, RFFeatureGetter howToGetFeatures = null)
 {
     return(StructuredEdgeDetection.Create(model, howToGetFeatures));
 }
示例#2
0
 /// <summary>
 /// Creates a RFFeatureGetter
 /// </summary>
 /// <returns></returns>
 public static RFFeatureGetter CreateRFFeatureGetter()
 {
     return(RFFeatureGetter.Create());
 }