You are here: Start » AVL.NET » Function Reference » Image » Image Features » AVL.ImageProjection
Computes the average (or other statistic) for each image row or column and then merges the obtained results into a profile.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ImageProjection ( AvlNet.Image inImage, NullableRef<AvlNet.Region> inRoi, AvlNet.ProjectionDirection inProjectionDirection, AvlNet.ProjectionMode inProjectionMode, AvlNet.Profile outProfile )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inImage | AvlNet.Image | Monochromatic image. | ||
![]() | inRoi | AvlNet.NullableRef<AvlNet.Region> | Range of pixels to be processed. Default value: atl::NIL. | ||
![]() | inProjectionDirection | AvlNet.ProjectionDirection | Combine pixel values for image rows (horizontal) or columns (vertical). | ||
![]() | inProjectionMode | AvlNet.ProjectionMode | Sum | Determines how the pixel values are combined. Default value: Sum. | |
![]() | outProfile | AvlNet.Profile | Output profile. |
Description
Computes the average (or other statistic) for each image row or column and then merges the obtained results into a profile.
Examples
ImageProjection performed on a lena sample.
| Mode | Horizontal Direction | Vertical Direction |
|---|---|---|
| Sum | ![]() |
![]() |
| Average | ![]() |
![]() |
| Maximum | ![]() |
![]() |
| Minimum | ![]() |
![]() |
| Median | ![]() |
![]() |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Region exceeds an input image in ImageProjection. |
| DomainError | Not supported inImage pixel format in ImageProjection. Supported formats: 1xUInt8, 1xInt8, 1xUInt16, 1xInt16, 1xInt32, 1xReal. |












