Back to FabImage Library Lite websiteYou are here:
Start »
Image Spatial Transforms »
CropImageToRegion
Header: | FIL.h |
Namespace: | fil |
Crops an image to the area of the specified region.
Syntax
void fil::CropImageToRegion
(
const fil::Image& inImage,
const fil::Region& inRegion,
const fil::Pixel& inOutsidePixel,
fil::Image& outImage
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inImage |
const Image& |
|
Input image |
 |
inRegion |
const Region& |
|
Input region |
 |
inOutsidePixel |
const Pixel& |
|
Color used for locations outside the region |
 |
outImage |
Image& |
|
Output image |
Description
The operation extracts part of the inImage that corresponds to the region.
Other pixels are set to inOutsidePixel color.
Examples
CropImageToRegion performed on the sample image and region.