Table of Contents

Class Crop

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that crops a rectangular subregion of each image in the sequence, without copying.

Editor

To open the Region of Interest (ROI) editor, start the workflow and click on the ellipsis button inside the RegionOfInterest property in the property grid, or double-click the operator node while holding Ctrl.

Create ROI

To create a new ROI, press and hold the left mouse button anywhere in the editor window and drag the mouse to define the region of interest. Release the button to complete the selection.

Note

If an ROI is already defined, pressing and holding the left mouse button outside the boundaries of the existing ROI will create a new ROI, and clear the previous one.

Move ROI

To move an ROI, press and hold the left mouse button anywhere inside the existing rectangular region and drag the mouse to reposition it. Releasing the button will complete the move.

Clear ROI

To clear any existing ROI, right-click anywhere in the editor window.

Tip

Undo and redo operations are supported on any of the above actions. To undo an action press Ctrl+Z on your keyboard. To redo something you've undone, press Ctrl+Y. You can press these shortcuts multiple times if you want to undo or redo multiple steps.

public class Crop : Transform<IplImage, IplImage>
Inheritance
Crop
Inherited Members

Properties

RegionOfInterest

Gets or sets a rectangle specifying the region of interest inside the image.

Methods

Process(IObservable<IplImage>)

Crops a subregion of each image in an observable sequence.