1 #ifndef TIL_CONNECTEDCOMPONENTS3D_H 2 #define TIL_CONNECTEDCOMPONENTS3D_H 22 #define SPAN_NEIGHBORS(i,j,k) \ 23 if (nh.template isNeighbor<(i),(j),(k)>() && \ 24 ((neighborLabels[COFFSET(i,j,k)] = iIm.template getValue<TExtrapolator,(i),(j),(k)>()) != 0)) \ 34 template <
typename TImage,
typename TNeighborhood,
typename TExtrapolator >
43 template <
typename TImage,
typename TNeighborhood >
46 return connectedComponents<TImage, TNeighborhood, ZeroExtrapolator>(im,nh);
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
int connectedComponents(TImage &im, const TNeighborhood &nh)
Label the connected components of image im.