Table of Contents

Class EntropyCropProcessor

Namespace
SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly
SixLabors.ImageSharp.dll

Defines cropping operation that preserves areas of highest entropy.

public sealed class EntropyCropProcessor : IImageProcessor
Inheritance
EntropyCropProcessor
Implements
Inherited Members

Constructors

EntropyCropProcessor()

Initializes a new instance of the EntropyCropProcessor class.

public EntropyCropProcessor()

EntropyCropProcessor(float)

Initializes a new instance of the EntropyCropProcessor class.

public EntropyCropProcessor(float threshold)

Parameters

threshold float

The threshold to split the image. Must be between 0 and 1.

Exceptions

ArgumentException

threshold is less than 0 or is greater than 1.

Properties

Threshold

Gets the entropy threshold value.

public float Threshold { get; }

Property Value

float

Methods

CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)

public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration
source Image<TPixel>
sourceRectangle Rectangle

Returns

IImageProcessor<TPixel>

Type Parameters

TPixel