Useful macros




Variable declaration macros

NameArgumentsDescription
mln_VAR(N, V) N : name of the variable. 
V : value to assign to N.Declare a variable N of type N_t and assign the value V.
mln_const_VAR(N, V)N : name of the variable. 
V : value to assign to N.Declare a const variable N of type N_t and assign the value V.




Iterator type macros

Default iterator types

NameArgumentsDescription
mln_eiter(T) T : iterable container type Type of the element iterator of T
mln_niter(T) T : iterable container/Image typeType of the neighborhood iterator of T
mln_piter(T) T : iterable container/image typeType of the site iterator
mln_qiter(T) T : iterable container/image typeType of the window neighbors iterator of T
mln_viter(T) T : iterable value container typeType of the value iterator of T
mln_pixter(I) I : image Type of the pixel iterator of I
mln_qixter(I, W)I : image type,  
W : window Type Type of the pixel iterator of a window on an image of type I.
mln_nixter(I, N)I : image type,  
N : neighborhood type Type of the pixel iterator of a neighborhood on an image of type I.

Forward iterator types

NameArgumentsDescription
mln_fwd_eiter(T) T : iterable container type Type of the element forward iterator of T
mln_fwd_niter(T) T : iterable container/Image typeType of the neighborhood forward iterator of T
mln_fwd_piter(T) T : iterable container/image typeType of the site forward iterator
mln_fwd_qiter(T) T : iterable container/image typeType of the window neighbors forward iterator of T
mln_fwd_viter(T) T : iterable value container typeType of the value forward iterator of T
mln_fwd_pixter(I) I : image Type of the pixel forward iterator of I
mln_fwd_qixter(I, W) I : image type,  
W : window Type Type of the pixel forward iterator of a window on an image of type I.
mln_fwd_nixter(I, N) I : image type,  
N : neighborhood type Type of the pixel forward iterator of a neighborhood on an image of type I.

Backward iterators

NameArgumentsDescription
mln_bkd_eiter(T) T : iterable container type Type of the element backward iterator of T
mln_bkd_niter(T) T : iterable container/Image typeType of the neighborhood backward iterator of T
mln_bkd_piter(T) T : iterable container/image typeType of the site backward iterator
mln_bkd_qiter(T) T : iterable container/image typeType of the window neighbors backward iterator of T
mln_bkd_viter(T) T : iterable value container typeType of the value backward iterator of T
mln_bkd_pixter(I) I : image Type of the pixel backward iterator of I
mln_bkd_qixter(I, W) I : image type,  
W : window Type Type of the pixel backward iterator of a window on an image of type I.
mln_bkd_nixter(I, N) I : image type,  
N : neighborhood type Type of the pixel backward iterator of a neighborhood on an image of type I.

Graph iterators

NameArgumentsDescription
mln_vertex_iter(G) G : graph typeIterator on vertices.
mln_edge_iter(G) G : graph typeIterator on edges.
mln_vertex_nbh_edge_iter(G) G : graph typeIterator on the edges adjacent to a vertex.
mln_vertex_nbh_vertex_iter(G)G : graph typeIterator on the vertices adjacent to a vertex.
mln_edge_nbh_edge_iter(G) G : graph typeIterator on the edges adjacent to an edge.