Class Binarization
Generates a binary raster version of the input image with the iterative threshold method.
Pipeline Input type: Image{Rgba32}
Default Pipeline Output: (bool[,]) Binarized
Inherited Members
Namespace: SigStat.Common.Transforms
Assembly: SigStat.Common.dll
Syntax
public class Binarization : PipelineBase, ILoggerObject, IProgress, ITransformation, IPipelineIO
Constructors
| Improve this Doc View SourceBinarization()
Initializes a new instance of the Binarization class with default settings: Iterative threshold and Dark.
Declaration
public Binarization()
Binarization(Binarization.ForegroundType, Nullable<Double>)
Initializes a new instance of the Binarization class with specified settings.
Declaration
public Binarization(Binarization.ForegroundType foregroundType, double? binThreshold)
Parameters
Type | Name | Description |
---|---|---|
Binarization.ForegroundType | foregroundType | |
System.Nullable<System.Double> | binThreshold | Use this threshold value instead of iteratively calculating it. Range from 0 to 1 |
Properties
| Improve this Doc View SourceInputImage
Gets or sets the featuredescriptor of the input image.
Declaration
public FeatureDescriptor<Image<Rgba32>> InputImage { get; set; }
Property Value
Type | Description |
---|---|
FeatureDescriptor<Image<Rgba32>> |
OutputMask
Gets or sets the featuredescriptor of a the binarized image.
Declaration
public FeatureDescriptor<bool[, ]> OutputMask { 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. |