MV Mask DirectShow Filter 

The MontiVision Mask filter masks out parts of a video stream. The filter is far more flexible than simple ROI operations as it supports elliptical masks in addition to rectangular masks, supports rotated ellipse/rectangle masks and provides options to mask out either a ring, the inner region of the mask or the outer region.

 

File: Mask.ax
CLSID: CLSID_MVMask

 

Supported Interfaces

IMVMask

IMVFilterData

IMVAbout

IMVFilterInfo

 

Supported COM Events

The filter supports following events through the IMVFilterEvents interface. Look at the filter events page for more information.

Event

Value

Description
MV_ALGORITHM_START_EVENT

0

A filter starts processing a video frame or sample.
MV_ALGORITHM_END_EVENT

1

A filter finishes processing a video frame or sample.

 

MV Mask Property Page

Uses the IMVMask  interface to configure the filter.

MontiVision Mask DirectShow filter property page

Ellipse/Rectangle Selects the type of mask to be used.
Fill Object Fill rectangle or ellipse
Invert (White Mask) Inverts the mask
X Center Horizontal Center of the Mask
Y Center Vertical Center of the Mask
Width Mask Width
Height Mask Heigth
Angle Angle of the Mask (Ellipse or Rectangle)
Thickness Thickness of the mask in pixel.

 

Sample Configuration

The following sample configuration masks out areas of the video stream. In this case a round piece of plastic has to tested on dirt. The interesting area is masked using MV Mask and processed using MV Convolution and MV Segmentation.

Mask filter sample configuration

Original Video from Monochrome Camera:

Mask filter original image

Masked Video, only desired Area visible:

Mask filter masked image

Processed Video, Dirt is visualized:

Mask filter evaluated image