Do more. Code less. Free software for GPU computing.
<scroll to top>
Enumerations | Functions

Morphing: erosion, dilation, ...

Image and Signal Processing

Enumerations

enum  af_morph_t {
  AF_BW_Dilate = 0, AF_BW_Erode, AF_BW_Open, AF_BW_Close,
  AF_BW_Diag, AF_BW_Remove, AF_BW_Fill, AF_BW_Tophat,
  AF_BW_Bothat, AF_BW_Hbreak, AF_BW_Endpoints, AF_BW_Majority,
  AF_BW_Clean
}
 

Image Morphology enum.

More...

Functions

array erode (const array &image, const array &mask)
 Image erosion.
array dilate (const array &image, const array &mask)
 Image dilation.
array morph (const array &image, af_morph_t type)
 Image morphology (binary)

Enumeration Type Documentation

enum af_morph_t

Image Morphology enum.

Enumerator:
AF_BW_Dilate 
AF_BW_Erode 
AF_BW_Open 
AF_BW_Close 
AF_BW_Diag 
AF_BW_Remove 
AF_BW_Fill 
AF_BW_Tophat 
AF_BW_Bothat 
AF_BW_Hbreak 
AF_BW_Endpoints 
AF_BW_Majority 
AF_BW_Clean 

Function Documentation

array af::erode ( const array &  image,
const array &  mask 
)

Image erosion.

Parameters:
[in]image
[in]maskindicating neighborhood to match
Returns:
eroded image
Examples:
examples/image/image_demo.cpp.
array af::dilate ( const array &  image,
const array &  mask 
)

Image dilation.

Parameters:
[in]image
[in]maskindicating neighborhood to match
Returns:
dilated image
Examples:
examples/image/image_demo.cpp.
array af::morph ( const array &  image,
af_morph_t  type 
)

Image morphology (binary)

Parameters:
[in]imageThe input image (logical)
[in]typetype of image morphology
Returns:
filtered logical image
Examples:
examples/image/gfor_hist_demo.cpp, and examples/image/image_demo.cpp.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines