Table of Contents

Class CropPolygon

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that crops a polygonal region of interest for each image in the sequence.

public class CropPolygon : Transform<IplImage, IplImage>
Inheritance
CropPolygon
Derived
Inherited Members

Constructors

CropPolygon()

Initializes a new instance of the CropPolygon class.

public CropPolygon()

Properties

FillValue

Gets or sets a Scalar specifying the value to which all pixels that are not in the selected region will be set to.

public Scalar FillValue { get; set; }

Property Value

Scalar

MaskType

Gets or sets a value specifying the type of mask operation to apply on the region of interest.

[TypeConverter(typeof(CropPolygon.ThresholdTypeConverter))]
public ThresholdTypes MaskType { get; set; }

Property Value

ThresholdTypes

Regions

Gets or sets the array of vertices specifying each polygonal region of interest.

public Point[][] Regions { get; set; }

Property Value

Point[][]

Methods

Process(IObservable<IplImage>)

Extracts a polygonal region of interest for each image in an observable sequence.

public override IObservable<IplImage> Process(IObservable<IplImage> source)

Parameters

source IObservable<IplImage>

The sequence of images for which to extract the polygonal region of interest.

Returns

IObservable<IplImage>

A sequence of IplImage objects where each new image contains the extracted subregion of the original image.