Flexible Masks in EasyObject

using Code Snippets : Creating Code Snippets

A flexible mask can be generated by any application that outputs BW8 images or uses the Open eVision image processing functions.
EasyObject can use flexible masks to restrict blob analysis to complex or disconnected shaped regions of the image.

If an object of interest has the same gray level as other regions of the image, you can define "keep" and "ignore" areas using flexible masks and Encode functions.

A flexible mask is a BW8 image with the same height and width as the source image.

  • A pixel value of 0 in the flexible mask masks the corresponding source image pixel so it doesn't appear in the encoded image.
  • Any other pixel value in the flexible mask causes the pixel to be encoded.