Show / Hide Table of Contents

Class ImageGenerator

Generates an image feature out of a binary raster. Optionally, saves the image to a png file. Useful for debugging pipeline steps.

Pipeline Input type: bool[,]

Default Pipeline Output: (bool[,]) Input, (Image{Rgba32}) InputImage

Inheritance
System.Object
PipelineBase
ImageGenerator
Implements
ILoggerObject
IProgress
ITransformation
IPipelineIO
Inherited Members
PipelineBase.PipelineInputs
PipelineBase.PipelineOutputs
PipelineBase.Logger
PipelineBase.Progress
PipelineBase.ProgressChanged
PipelineBase.OnProgressChanged()
Namespace: SigStat.Common.Transforms
Assembly: SigStat.Common.dll
Syntax
public class ImageGenerator : PipelineBase, ILoggerObject, IProgress, ITransformation, IPipelineIO

Constructors

| Improve this Doc View Source

ImageGenerator()

Initializes a new instance of the ImageGenerator class with default settings: skip file writing, Blue ink on white paper.

Declaration
public ImageGenerator()
| Improve this Doc View Source

ImageGenerator(Boolean)

Initializes a new instance of the ImageGenerator class with default settings.

Declaration
public ImageGenerator(bool writeToFile)
Parameters
Type Name Description
System.Boolean writeToFile

Whether to save the generated image into a png file.

| Improve this Doc View Source

ImageGenerator(Boolean, Rgba32, Rgba32)

Initializes a new instance of the ImageGenerator class with specified settings.

Declaration
public ImageGenerator(bool writeToFile, Rgba32 foregroundColor, Rgba32 backgroundColor)
Parameters
Type Name Description
System.Boolean writeToFile

Whether to save the generated image into a png file.

Rgba32 foregroundColor

Ink color.

Rgba32 backgroundColor

Paper color.

Properties

| Improve this Doc View Source

BackgroundColor

Gets or sets the color of the backgroung used to render the signature

Declaration
public Rgba32 BackgroundColor { get; set; }
Property Value
Type Description
Rgba32
| Improve this Doc View Source

ForegroundColor

Gets or sets the color of the foreground used to render the signature

Declaration
public Rgba32 ForegroundColor { get; set; }
Property Value
Type Description
Rgba32
| Improve this Doc View Source

Input

Input FeatureDescriptor for the binary image of a signature

Declaration
public FeatureDescriptor<bool[, ]> Input { get; set; }
Property Value
Type Description
FeatureDescriptor<System.Boolean[,]>
| Improve this Doc View Source

OutputImage

Input FeatureDescriptor for the binary image of a signature

Declaration
public FeatureDescriptor<Image<Rgba32>> OutputImage { get; set; }
Property Value
Type Description
FeatureDescriptor<Image<Rgba32>>
| Improve this Doc View Source

WriteToFile

Gets or sets a value indicating whether the results should be saved to a file or not.

Declaration
public bool WriteToFile { get; set; }
Property Value
Type Description
System.Boolean

true if results should be saved to a file otherwise, false.

Methods

| Improve this Doc View Source

Transform(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.

Implements

ILoggerObject
IProgress
ITransformation
IPipelineIO
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX