/// <summary> /// Creates a new object that is a copy of the current instance. /// </summary> /// /// <returns> /// A new object that is a copy of this instance. /// </returns> /// public object Clone() { var clone = new FastRetinaKeypointDetector(); clone.featureType = featureType; clone.octaves = octaves; clone.scale = scale; if (descriptor != null) { // clone.descriptor = (FastRetinaKeypointDescriptor)descriptor.Clone(); // clone.grayImage = grayImage.Clone(); // clone.integral = (IntegralImage)integral.Clone(); // clone.pattern = (FastRetinaKeypointPattern)pattern.Clone(); } return(clone); }
/// <summary> /// Creates a new object that is a copy of the current instance. /// </summary> /// protected override object Clone(ISet <PixelFormat> supportedFormats) { var clone = new FastRetinaKeypointDetector(); clone.featureType = featureType; clone.octaves = octaves; clone.scale = scale; clone.SupportedFormats = supportedFormats; if (descriptor != null) { // clone.descriptor = (FastRetinaKeypointDescriptor)descriptor.Clone(); // clone.grayImage = grayImage.Clone(); // clone.integral = (IntegralImage)integral.Clone(); // clone.pattern = (FastRetinaKeypointPattern)pattern.Clone(); } return(clone); }
Create <TClustering>(FastRetinaKeypointDetector detector, TClustering clustering) where TClustering : IUnsupervisedLearning <IClassifier <double[], int>, double[], int> { return(Create <FastRetinaKeypointDetector, TClustering, FastRetinaKeypoint, double[]>(detector, clustering)); }
Create <TExtractor, TClustering, TPoint>(FastRetinaKeypointDetector detector, TClustering clustering) where TClustering : IUnsupervisedLearning <IClassifier <byte[], int>, byte[], int> where TExtractor : FastRetinaKeypointDetector { return(Create <FastRetinaKeypointDetector, TClustering, FastRetinaKeypoint, byte[]>(detector, clustering)); }