public ShapeContextMatching(Point[] i_Shape1Points, Point[] i_Shape2Points, Size i_SurfaceSize, SelectSamplesDelegate samplesSelectionLogic) { NumOfThetaBins = int.Parse(Resources.k_DefaultThetaBins); NumOfBins = int.Parse(Resources.k_DefaultNumOfBins); NumOfIterations = int.Parse(Resources.k_DefaultNumOfIterations); DistanceTreshold = double.Parse(Resources.k_DefaultDistanceTreshold); m_Matches = null; m_Shape1Points = i_Shape1Points; m_Shape2Points = i_Shape2Points; m_SurfaceSize = i_SurfaceSize; SelectionLogic = samplesSelectionLogic; }
public ShapeContextMatching(Point[] i_Shape1Points, Point[] i_Shape2Points,Size i_SurfaceSize, SelectSamplesDelegate samplesSelectionLogic) { NumOfThetaBins = int.Parse(Resources.k_DefaultThetaBins); NumOfBins = int.Parse(Resources.k_DefaultNumOfBins); NumOfIterations = int.Parse(Resources.k_DefaultNumOfIterations); DistanceTreshold = double.Parse(Resources.k_DefaultDistanceTreshold); m_Matches = null; m_Shape1Points = i_Shape1Points; m_Shape2Points = i_Shape2Points; m_SurfaceSize = i_SurfaceSize; SelectionLogic = samplesSelectionLogic; }