AutoCropAnalysis<TPixel> Class

The result of ImageProcessingExtensions.AnalyzeAutoCrop: the background, as a pixel of the image, and the content box detected in an Image<TPixel>.

public sealed class AutoCropAnalysis<TPixel> : AutoCropAnalysis where TPixel : unmanaged

Type parameters

TPixel
The pixel type of the analyzed image.

Remarks

See AutoCropAnalysis for the other members and the lifetime of an analysis.

Inheritance
AutoCropAnalysis AutoCropAnalysis<TPixel>

Properties

NameDescription
BackgroundColorGets the detected background: the first border pixel of the most frequent border color, as stored in the image. A fully transparent background is transparent black. The AutoCropAnalysis.BackgroundColor of the base type is the same color widened exactly to 16 bits (for RgbaFloat and RgbaHalf, clipped to [0, 1] and rounded to 16 bits).

Gets the detected background: the first border pixel of the most frequent border color, as stored in the image. A fully transparent background is transparent black. The AutoCropAnalysis.BackgroundColor of the base type is the same color widened exactly to 16 bits (for RgbaFloat and RgbaHalf, clipped to [0, 1] and rounded to 16 bits).

public new TPixel BackgroundColor { get; }

Property value

TPixel