SeamCarvingOptions Class
Immutable options of ImageProcessingExtensions.SeamCarve.
public sealed class SeamCarvingOptionsRemarks
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
| Name | Description |
|---|---|
| SeamCarvingOptions() |
SeamCarvingOptions()
public SeamCarvingOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the default options: no protected region and no region to remove. |
| ProtectedRegion | Gets the pixels the seams avoid, such as faces or a logo: a seam crosses them only when every seam does. Defaults to null. |
| RemovedRegion | 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. |
Default
SeamCarvingOptions.csGets the default options: no protected region and no region to remove.
public static SeamCarvingOptions Default { get; }Property value
ProtectedRegion
SeamCarvingOptions.csGets 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
RemovedRegion
SeamCarvingOptions.csGets 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; }