mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
719 B
23 lines
719 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using SixLabors.ImageSharp.Processing;
|
|
using SixLabors.ImageSharp.Processing.Processors.Transforms;
|
|
using Xunit;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.Processing.Transforms
|
|
{
|
|
public class EntropyCropTest : BaseImageOperationsExtensionTest
|
|
{
|
|
[Theory]
|
|
[InlineData(0.5F)]
|
|
[InlineData(.2F)]
|
|
public void EntropyCropThresholdFloatEntropyCropProcessorWithThreshold(float threshold)
|
|
{
|
|
this.operations.EntropyCrop(threshold);
|
|
EntropyCropProcessor processor = this.Verify<EntropyCropProcessor>();
|
|
|
|
Assert.Equal(threshold, processor.Threshold);
|
|
}
|
|
}
|
|
}
|