Mask Operations

The Mask module contains nodes used to manipulate masks (which take the form of imgBW). Masks can be turned into contours using FindContours or filter images using BitwiseAND. These nodes can be found under the opsi-draw tab.

Mask Module Add Nodes Image

Dilate

Dilate Node Image

Takes a mask (imgBW) and extends all of its borders by the number of pixels defined in the size setting. Commonly used to reduce noise in an image, along with Erode.

Erode

Erode Node Image

Takes a mask (imgBW) and removes the number of pixels around all its borders as defined in the size setting. Commonly used to reduce noise in an image, along with Dilate.

Invert

Invert Node Image

Inverts the mask such that all white areas become black and vise versa, effectively inverting the mask's effect.

Join

Join Node Image

Joins two masks (imgBW1 and imgBW2) such that if a pixel is white on either mask, it is white on the output mask.