Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object
コード例 #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 FastRetinaKeypointDescriptor();

            clone.Extended            = Extended;
            clone.Image               = Image.Clone();
            clone.Integral            = (IntegralImage)Integral.Clone();
            clone.IsOrientationNormal = IsOrientationNormal;
            clone.IsScaleNormal       = IsScaleNormal;
            clone.pattern             = (FastRetinaKeypointPattern)pattern.Clone();
            return(clone);
        }