Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 Create <TClustering>(FastRetinaKeypointDetector detector, TClustering clustering)
     where TClustering : IUnsupervisedLearning <IClassifier <double[], int>, double[], int>
 {
     return(Create <FastRetinaKeypointDetector, TClustering, FastRetinaKeypoint, double[]>(detector, clustering));
 }
Ejemplo n.º 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));
 }