You are here: Start » AVL.NET » AVL.CropPixels
Sets pixels below the low value to the low value and above the high value to the high value.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void CropPixels ( AvlNet.Image inImage, NullableRef<AvlNet.Region> inRoi, float? inLowValue, float? inHighValue, AvlNet.Image outImage )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inImage | AvlNet.Image | Input image. | ||
![]() | inRoi | AvlNet.NullableRef<AvlNet.Region> | Range of pixels to be processed. Default value: atl::NIL. | ||
![]() | inLowValue | float? | 64.0f | The lower threshold for the image pixel values. Default value: 64.0f. | |
![]() | inHighValue | float? | 192.0f | The higher threshold for the image pixel values. Default value: 192.0f. | |
![]() | outImage | AvlNet.Image | Output image. |
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 | The low value cannot be higher than the high value in CropPixels. |


