Back to FabImage Library website
You are here: Start » Function Reference » Basic » Box » ErodeBox
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Performs a morphological erosion on a box using box kernel.
Syntax
C++
C#
void fil::ErodeBox ( const fil::Box& inBox, const int inRadiusX, ftl::Optional<int> inRadiusY, fil::Box& outBox )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inBox | const Box& | Input box | ||
![]() |
inRadiusX | const int | 0 - ![]() |
1 | Horizontal radius of the box kernel |
![]() |
inRadiusY | Optional<int> | 0 - ![]() |
NIL | Vertical radius of the box kernel |
![]() |
outBox | Box& | Eroded box |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inBox and outBox
Read more about In-place Computation.
Description
Performs a morphological erosion on a box using box kernel.
Examples
![]() |
![]() |
ErodeBox performed with kernel size 2x1.
See Also
- ResizeBox_Relative – Resizes a box to relatively defined dimensions.
- ResizeRegion – Enlarges or shrinks a region to new dimensions.