You are here: Start » AVL.NET » Invoke.CloseImage
Removes small dark structures from an image (or fills in bright ones) by applying consecutive dilation and erosion.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void CloseImage ( Avl.Image inImage, Optional<Avl.Region> inRoi, Optional<Avl.Region> inSourceRoi, Optional<Avl.Pixel> inBorderColor, Avl.KernelShape inKernel, int inRadiusX, Optional<int> inRadiusY, Avl.Image outImage, Diagnostic<Avl.Region> diagKernel )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inImage | Avl.Image | Input image. | ||
![]()  | inRoi | Atl.Optional<Avl.Region> | Range of outImage pixels to be computed. Default value: atl::NIL. | ||
![]()  | inSourceRoi | Atl.Optional<Avl.Region> | Range of inImage pixels to be considered in computations. Default value: atl::NIL. | ||
![]()  | inBorderColor | Atl.Optional<Avl.Pixel> | Color of the imaginary pixels outside the image boundaries. Default value: atl::NIL. | ||
![]()  | inKernel | Avl.KernelShape | Selects kernel shape. | ||
![]()  | inRadiusX | int | <0, INF> | 1 | Nearly half of the kernel's width (2*R+1). Default value: 1. | 
![]()  | inRadiusY | Atl.Optional<int> | <0, INF> | Nearly half of the kernel's height. Default value: atl::NIL. | |
![]()  | outImage | Avl.Image | Output image. | ||
![]()  | diagKernel | Avl.Diagnostic<Avl.Region> | Kernel shape. | 



