Class Trim
Trims unnecessary empty space from a binary raster.
Pipeline Input type: bool[,]
Default Pipeline Output: (bool[,]) Trimmed
Inherited Members
Namespace: SigStat.Common.Transforms
Assembly: SigStat.Common.dll
Syntax
public class Trim : PipelineBase, ILoggerObject, IProgress, ITransformation, IPipelineIO
Constructors
| Improve this Doc View SourceTrim(Int32)
Declaration
public Trim(int framewidth)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | framewidth | Leave a border around the trimmed area. framewidth > 0 |
Properties
| Improve this Doc View SourceInput
Input FeatureDescriptor describing the image of the signature
Declaration
public FeatureDescriptor<bool[, ]> Input { get; set; }
Property Value
Type | Description |
---|---|
FeatureDescriptor<System.Boolean[,]> |
Output
Output FeatureDescriptor describing the trimed image of the signature
Declaration
public FeatureDescriptor<bool[, ]> Output { get; set; }
Property Value
Type | Description |
---|---|
FeatureDescriptor<System.Boolean[,]> |
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. |