/// <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 HistogramsOfOrientedGradients(numberOfBins, blockSize, cellSize);

            clone.epsilon   = epsilon;
            clone.normalize = normalize;
            return(clone);
        }
Esempio 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 HistogramsOfOrientedGradients(numberOfBins, blockSize, cellSize);

            clone.SupportedFormats = supportedFormats;
            clone.epsilon          = epsilon;
            clone.normalize        = normalize;
            return(clone);
        }
Esempio n. 3
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 HistogramsOfOrientedGradients(numberOfBins, blockSize, cellSize);

            clone.direction  = (float[, ])direction.Clone();
            clone.epsilon    = epsilon;
            clone.histograms = (double[, ][])histograms.Clone();
            clone.magnitude  = (float[, ])magnitude.Clone();
            clone.normalize  = normalize;
            return(clone);
        }