Browse Source
Merge pull request #1840 from SixLabors/af/remove-HistogramEqualizationOptions-Default
Remove HistogramEqualizationOptions.Default
pull/1844/head
Anton Firszov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
2 additions and
7 deletions
-
src/ImageSharp/Processing/Extensions/Normalization/HistogramEqualizationExtensions.cs
-
src/ImageSharp/Processing/Processors/Normalization/HistogramEqualizationOptions.cs
-
tests/ImageSharp.Tests/Formats/WebP/LossyUtilsTests.cs
|
|
|
@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.Processing |
|
|
|
/// <param name="source">The image this method extends.</param>
|
|
|
|
/// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns>
|
|
|
|
public static IImageProcessingContext HistogramEqualization(this IImageProcessingContext source) => |
|
|
|
HistogramEqualization(source, HistogramEqualizationOptions.Default); |
|
|
|
HistogramEqualization(source, new HistogramEqualizationOptions()); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Equalizes the histogram of an image to increases the contrast.
|
|
|
|
|
|
|
|
@ -8,11 +8,6 @@ namespace SixLabors.ImageSharp.Processing.Processors.Normalization |
|
|
|
/// </summary>
|
|
|
|
public class HistogramEqualizationOptions |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Gets the default <see cref="HistogramEqualizationOptions"/> instance.
|
|
|
|
/// </summary>
|
|
|
|
public static HistogramEqualizationOptions Default { get; } = new HistogramEqualizationOptions(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the histogram equalization method to use. Defaults to global histogram equalization.
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.WebP |
|
|
|
int actual = LossyUtils.Vp8_Sse4X4(a, b); |
|
|
|
|
|
|
|
Assert.Equal(expected, actual); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static void RunMean16x4Test() |
|
|
|
{ |
|
|
|
|