/// <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);
}