Image.extractRoiWithColor Method

Module: Image

Definition

Extracts a region of interest in the image according to the given bounds.

Image extractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue)

Parameters

bounds Rectangle
in Bounds of the crop to extract.

colorRed int
in Background color red (from 0 to 255)

colorGreen int
in Background color green (from 0 to 255)

colorBlue int
in Background color blue (from 0 to 255)

Returns

The extracted region of interest.

Exceptions

An error has occurred during Face Library execution.