FingerImage.extractRoiWithColor Method¶
Module: FingerImage
Definition¶
Extracts a region of interest in the image according to the given bounds.
extract_roi_with_color(self, bounds: Rectangle, color_red: int, color_green: int, color_blue: int) -> FingerImage
Parameters
bounds
Rectanglein Bounds of the crop to extract.color_red
intin Background color red (from 0 to 255)color_green
intin Background color green (from 0 to 255)color_blue
intin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Finger Library execution.
FingerImage extractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue)
Parameters
bounds
Rectanglein Bounds of the crop to extract.colorRed
intin Background color red (from 0 to 255)colorGreen
intin Background color green (from 0 to 255)colorBlue
intin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Finger Library execution.
public FingerImage ExtractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue)
Parameters
bounds
Rectanglein Bounds of the crop to extract.colorRed
intin Background color red (from 0 to 255)colorGreen
intin Background color green (from 0 to 255)colorBlue
intin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Finger Library execution.
public FingerImage extractRoiWithColor(Rectangle bounds, int colorRed, int colorGreen, int colorBlue) throws FingerException
Parameters
bounds
Rectanglein Bounds of the crop to extract.colorRed
intin Background color red (from 0 to 255)colorGreen
intin Background color green (from 0 to 255)colorBlue
intin Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Finger Library execution.
public func extractRoiWithColor(bounds: Rectangle, colorRed: Int32, colorGreen: Int32, colorBlue: Int32) throws -> FingerImage
Parameters
bounds
Rectanglein Bounds of the crop to extract.colorRed
Int32in Background color red (from 0 to 255)colorGreen
Int32in Background color green (from 0 to 255)colorBlue
Int32in Background color blue (from 0 to 255)
Returns
The extracted region of interest.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerImage_ExtractRoiWithColor (
ID3_FINGER_IMAGE hFingerImage,
ID3_FINGER_RECTANGLE hBounds,
int colorRed,
int colorGreen,
int colorBlue,
ID3_FINGER_IMAGE hFingerImageRoi)
Parameters
hFingerImage
ID3_FINGER_IMAGEin Handle to the FingerImage object.hBounds
ID3_FINGER_RECTANGLEin Bounds of the crop to extract.colorRed
intin Background color red (from 0 to 255)colorGreen
intin Background color green (from 0 to 255)colorBlue
intin Background color blue (from 0 to 255)hFingerImageRoi
ID3_FINGER_IMAGEout The extracted region of interest.
Returns