Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
 Create <TClustering>(FastRetinaKeypointDetector detector, TClustering clustering)
     where TClustering : IUnsupervisedLearning <IClassifier <double[], int>, double[], int>
 {
     return(Create <FastRetinaKeypointDetector, TClustering, FastRetinaKeypoint, double[]>(detector, clustering));
 }
Exemple #4
0
 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));
 }