Back to Adaptive Vision Library Lite websiteYou are here:
Start »
Image Spatial Transforms »
CropImage
Header: | AVL.h |
Namespace: | avl |
Creates an image from a box-shaped fragment of the input image (with margins if requested).
Syntax
void avl::CropImage
(
const avl::Image& inImage,
const avl::Box& inSelection,
avl::Image& outImage
)
Parameters
|
Name |
Type |
Default |
Description |
![](../../img/in.png) |
inImage |
const Image& |
|
Input image |
![](../../img/in.png) |
inSelection |
const Box& |
|
Box defining a subimage to be cropped |
![](../../img/out.png) |
outImage |
Image& |
|
Output image |
Description
The operation extracts part of the inImage that corresponds to the inSelection box.
Hints
- It is usually recommended to use Local Coordinate Systems rather than image cropping.
Examples
CropImage performed on the sample image.