Class Resize
Resizes the image to a specified width and height
Inherited Members
Namespace: SigStat.Common.Transforms
Assembly: SigStat.Common.dll
Syntax
public class Resize : PipelineBase, ILoggerObject, IProgress, ITransformation, IPipelineIO
Properties
| Improve this Doc View SourceHeight
The new height. Leave it as null, if you do not want to explicitly specify a given height
Declaration
public int? Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
InputImage
Input FeatureDescriptor describing the image of the signature
Declaration
public FeatureDescriptor<Image<Rgba32>> InputImage { get; set; }
Property Value
Type | Description |
---|---|
FeatureDescriptor<Image<Rgba32>> |
OutputImage
Output FeatureDescriptor describing the resized image of the signature
Declaration
public FeatureDescriptor<Image<Rgba32>> OutputImage { get; set; }
Property Value
Type | Description |
---|---|
FeatureDescriptor<Image<Rgba32>> |
ResizeFunction
Set a resize function if you want to dynamically calculate the new width and height of the image
Declaration
public Func<Image<Rgba32>, Size> ResizeFunction { get; set; }
Property Value
Type | Description |
---|---|
Func<Image<Rgba32>, Size> |
Width
The new width. Leave it as null, if you do not want to explicitly specify a given width
Declaration
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
| Improve this Doc View SourceTransform(Signature)
Executes the transform on the signature
parameter.
This function gets called by the pipeline.
Declaration
public void Transform(Signature signature)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature | The Signature with a set of features to be transformed. |