📷 A modern, cross-platform, 2D Graphics library for .NET
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.
 
 

27 lines
821 B

// <copyright file="EntropyCropTest.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Tests.Processing.Transforms
{
using System;
using ImageSharp.PixelFormats;
using ImageSharp.Processing.Processors;
using Xunit;
public class EntropyCropTest : BaseImageOperationsExtensionTest
{
[Theory]
[InlineData(0.5f)]
[InlineData(.2f)]
public void EntropyCrop_threasholdFloat_EntropyCropProcessorWithThreshold(float threashold)
{
this.operations.EntropyCrop(threashold);
var processor = this.Verify<EntropyCropProcessor<Rgba32>>();
Assert.Equal(threashold, processor.Threshold);
}
}
}