SMIL  1.0.4
Skeletons (Zhang and others)

Detailed Description

Skeletons result from sequential iterations of thinnings that generate a medial axis of the input set. This medial axis are called skeleton.

Algorithms in this Addon don't make use of mathematical morphology operations but, most of the time, on empirical rules to iteratively removal of pixels based on their connectivity or neighborhood till idempotency.

See also
+ Collaboration diagram for Skeletons (Zhang and others):

Functions

template<class T >
RES_T zhangSkeleton (const Image< T > &imIn, Image< T > &imOut)
 zhangSkeleton() - Zhang 2D skeleton More...
 
template<class T >
RES_T zhangThinning (const Image< T > &imIn, Image< T > &imOut)
 zhangThinning() - Zhang 2D skeleton More...
 
template<typename T >
RES_T imageThinning (const Image< T > &imIn, Image< T > &imOut, string method="Zhang")
 imageThinning() More...
 

Function Documentation

◆ zhangSkeleton()

RES_T smil::zhangSkeleton ( const Image< T > &  imIn,
Image< T > &  imOut 
)

zhangSkeleton() - Zhang 2D skeleton

Implementation corresponding to the algorithm described in [22], [5] and [10].

Parameters
[in]imIn: input image
[out]imOut: output image
Note
  • 2D only

◆ zhangThinning()

RES_T smil::zhangThinning ( const Image< T > &  imIn,
Image< T > &  imOut 
)

zhangThinning() - Zhang 2D skeleton

Implementation corresponding to the algorithm described in [22], [5] and [10].

Parameters
[in]imIn: input image
[out]imOut: output image
Note
  • 2D only
See also
zhangSkeleton() This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ imageThinning()

RES_T smil::imageThinning ( const Image< T > &  imIn,
Image< T > &  imOut,
string  method = "Zhang" 
)

imageThinning()

Parameters
[in]imIn: binary input image
[out]imOut: output image
[in]method: algorithm to use.
  • Zhang (default) - [22]
  • DongLinHuang - [7]