Skip to content

Documentation\RooBinaryImage

RJ Alexander Fang edited this page Apr 4, 2017 · 1 revision

Facts

Type: Public class

Purpose: Constructor for a RooImage that takes in an image in the format of an OpenCV Mat object.

Interface implemented/superclass: RooImage

Availability: Since Initial Release

Methods

Constructor

The constructor for RooBinaryImage takes in image in the form of an OpenCV Mat object.

    public RooBinaryImage(Mat mat)

OR-Operation

Conducts a bitwise-OR operation on the target image.

    public RooBinaryImage bitwiseOr(RooBinaryImage otherImage)

AND-Operation

Conducts a bitwise-AND operation on the target image.

    public RooBinaryImage bitwiseAnd(RooBinaryImage otherImage)

Negation Opeartion

Conducts a negation operation on the target image.

    public RooBinaryImage bitwiseNot()

XOR-Operation

Conducts an XOR operation on the target image.

    public RooBinaryImage bitwiseXor(RooBinaryImage otherImage)

Find all contours

Finds all contours on the target image. Returns an array of RooContours.

    public RooContour[] findContours()