SeamCarvingOptions Class

public sealed class SeamCarvingOptions

Remarks

The masks are read when the operation starts; changing them afterwards changes later operations only. Each one must have the size of the image.

Constructors

NameDescription
SeamCarvingOptions()

SeamCarvingOptions()

public SeamCarvingOptions()

No documentation is available.

Properties

NameDescription
DefaultGets the default options: no protected region and no region to remove.
ProtectedRegionGets the pixels the seams avoid, such as faces or a logo: a seam crosses them only when every seam does. Defaults to null.
RemovedRegionGets the pixels the seams go through first, such as an object to remove: while one is left, the seams of a reduction cross as many of them as they can. Defaults to null.

Gets the default options: no protected region and no region to remove.

public static SeamCarvingOptions Default { get; }

Property value

SeamCarvingOptions

ProtectedRegion

SeamCarvingOptions.cs

Gets the pixels the seams avoid, such as faces or a logo: a seam crosses them only when every seam does. Defaults to null.

public PixelMask? ProtectedRegion { get; init; }

Property value

PixelMask?

Gets the pixels the seams go through first, such as an object to remove: while one is left, the seams of a reduction cross as many of them as they can. Defaults to null.

public PixelMask? RemovedRegion { get; init; }

Property value

PixelMask?