Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Features » ImageProjection
ImageProjection
Computes the average (or other statistic) for each image row or column and then merges the obtained results into a profile.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::ImageProjection ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, avl::ProjectionDirection::Type inProjectionDirection, avl::ProjectionMode::Type inProjectionMode, avl::Profile& outProfile )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inImage | const Image& | Monochromatic image | ||
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed | |
inProjectionDirection | ProjectionDirection::Type | Combine pixel values for image rows (horizontal) or columns (vertical) | ||
inProjectionMode | ProjectionMode::Type | Sum | Determines how the pixel values are combined | |
outProfile | Profile& | Output profile |
Requirements
For input inImage only pixel formats are supported: 1xuint8, 1xint8, 1xuint16, 1xint16, 1xint32, 1xreal.
Read more about pixel formats in Image documentation.
Description
Computes the average (or other statistic) for each image row or column and then merges the obtained results into a profile.
Examples
Mode | Horizontal Direction | Vertical Direction |
Sum | ||
Average | ||
Maximum | ||
Minimum |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.