HighMap library (C++)
Loading...
Searching...
No Matches
morphology.hpp File Reference

Header file for image morphology functions and operations. More...

Go to the source code of this file.

Namespaces

namespace  hmap
 
namespace  hmap::gpu
 

Enumerations

enum  hmap::DistanceTransformType : int { hmap::DT_EXACT , hmap::DT_APPROX , hmap::DT_MANHATTAN }
 Enumeration for different types of distance transforms. More...
 

Functions

Array hmap::border (const Array &array, int ir)
 Apply a border algorithm to the input array using a square structure.
 
Array hmap::closing (const Array &array, int ir)
 Apply a closing algorithm to the input array using a square structure.
 
Array hmap::dilation (const Array &array, int ir)
 Apply a dilation algorithm to the input array using a square structure.
 
Array hmap::distance_transform (const Array &array, bool return_squared_distance=false)
 Return the Euclidean distance transform.
 
Array hmap::distance_transform_approx (const Array &array, bool return_squared_distance=false)
 Calculates an approximate distance transform of the input array.
 
Array hmap::distance_transform_manhattan (const Array &array, bool return_squared_distance=false)
 Calculates the Manhattan distance transform of an array.
 
Array hmap::erosion (const Array &array, int ir)
 Apply an erosion algorithm to the input array using a square structure.
 
void hmap::flood_fill (Array &array, int i, int j, float fill_value=1.f, float background_value=0.f)
 Apply a flood fill algorithm to the input array.
 
Array hmap::morphological_black_hat (const Array &array, int ir)
 Apply a morphological black hat algorithm to the input array using a square structure.
 
Array hmap::morphological_gradient (const Array &array, int ir)
 Apply a morphological gradient algorithm to the input array using a square structure.
 
Array hmap::morphological_top_hat (const Array &array, int ir)
 Apply a morphological top hat algorithm to the input array using a square structure.
 
Array hmap::opening (const Array &array, int ir)
 Apply an opening algorithm to the input array using a square structure.
 
Array hmap::relative_distance_from_skeleton (const Array &array, int ir_search, bool zero_at_borders=true, int ir_erosion=1)
 Computes the relative distance of each non-zero cell in a binary array from the skeleton and border.
 
Array hmap::skeleton (const Array &array, bool zero_at_borders=true)
 Computes the skeleton of a binary image using the Zhang-Suen skeletonization algorithm.
 
Array hmap::gpu::border (const Array &array, int ir)
 See hmap::border.
 
Array hmap::gpu::closing (const Array &array, int ir)
 See hmap::closing.
 
Array hmap::gpu::dilation (const Array &array, int ir)
 See hmap::dilation.
 
Array hmap::gpu::erosion (const Array &array, int ir)
 See hmap::erosion.
 
Array hmap::gpu::morphological_black_hat (const Array &array, int ir)
 See hmap::morphological_black_hat.
 
Array hmap::gpu::morphological_gradient (const Array &array, int ir)
 See hmap::morphological_gradient.
 
Array hmap::gpu::morphological_top_hat (const Array &array, int ir)
 See hmap::morphological_top_hat.
 
Array hmap::gpu::opening (const Array &array, int ir)
 See hmap::opening.
 
Array hmap::gpu::relative_distance_from_skeleton (const Array &array, int ir_search, bool zero_at_borders=true, int ir_erosion=1)
 See hmap::relative_distance_from_skeleton.
 
Array hmap::gpu::skeleton (const Array &array, bool zero_at_borders=true)
 See hmap::skeleton.
 

Detailed Description

Header file for image morphology functions and operations.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)

This header file provides declarations for functions and utilities related to image morphology, including operations such as dilation, erosion, opening, closing, etc. These functions are commonly used in image processing to enhance or extract features based on the shape and structure of objects within an image.