Image.crop Method¶
Module: Image
Definition¶
Crop a rectangular region of interest in the image according to the given bounds.
crop(self, left: int, top: int, width: int, height: int) -> Image
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Face Library execution.
Image crop(int left, int top, int width, int height)
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Face Library execution.
public Image Crop(int left, int top, int width, int height)
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Face Library execution.
public Image crop(int left, int top, int width, int height) throws FaceException
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Face Library execution.
public func crop(left: Int32, top: Int32, width: Int32, height: Int32) throws -> Image
Parameters
leftInt32in Left bound of the crop to extract.topInt32in Top bound of the crop to extract.widthInt32in Width of the crop to extract.heightInt32in Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Face Library execution.
int id3FaceImage_Crop (
ID3_FACE_IMAGE hImage,
int left,
int top,
int width,
int height,
ID3_FACE_IMAGE hImageCrop)
Parameters
hImageID3_FACE_IMAGEin Handle to the Image object.leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.hImageCropID3_FACE_IMAGEout The extracted region of interest.
Returns