Accord.Imaging.GrayLevelCooccurrenceMatrix.Clone C# (CSharp) Method

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object
        public object Clone()
        {
            var clone = new GrayLevelCooccurrenceMatrix();
            clone.autoGray = autoGray;
            clone.degree = degree;
            clone.distance = distance;
            clone.normalize = normalize;
            clone.numPairs = numPairs;
            return clone;
        }
    }

Usage Example

コード例 #1
0
ファイル: Haralick.cs プロジェクト: xiubjarne/framework
        /// <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 Haralick();

            clone.autoGray     = autoGray;
            clone.cellSize     = cellSize;
            clone.degrees      = degrees;
            clone.distance     = distance;
            clone.featureCount = featureCount;
            clone.features     = (HaralickDescriptorDictionary[, ])features.Clone();
            clone.matrix       = (GrayLevelCooccurrenceMatrix)matrix.Clone();
            clone.mode         = mode;
            clone.normalize    = normalize;
            return(clone);
        }
All Usage Examples Of Accord.Imaging.GrayLevelCooccurrenceMatrix::Clone