Namespaces | |
namespace | impl |
Implementation namespace of border namespace. | |
Functions | |
template<typename I> | |
void | adjust (const Image< I > &ima, unsigned min_thickness) |
template<typename I> | |
void | duplicate (const Image< I > &ima) |
template<typename I, typename J> | |
void | equalize (const Image< I > &ima1, const Image< J > &ima2, unsigned min_thickness) |
template<typename I> | |
void | fill (const Image< I > &ima, const typename I::value &v) |
template<typename I> | |
unsigned | find (const Image< I > &ima) |
template<typename I> | |
unsigned | get (const Image< I > &ima) |
template<typename I> | |
void | mirror (const Image< I > &ima) |
template<typename I> | |
void | resize (const Image< I > &ima, unsigned thickness) |
Facade. |
void mln::border::adjust | ( | const Image< I > & | ima, | |
unsigned | min_thickness | |||
) | [inline] |
Adjust the virtual (outer) border of image ima
so that its size is at least min_thickness
.
[in,out] | ima | The image whose border is to be adjusted. |
[in] | min_thickness | The expected border minimum thickness. |
ima
has to be initialized.min_thickness
, this routine is a no-op. void mln::border::duplicate | ( | const Image< I > & | ima | ) | [inline] |
Assign the virtual (outer) border of image ima
with the duplicate of the inner border of this image.
[in,out] | ima | The image whose border is to be duplicated. |
ima
has to be initialized.References get().
Referenced by mln::extension::duplicate().
void mln::border::equalize | ( | const Image< I > & | ima1, | |
const Image< J > & | ima2, | |||
unsigned | min_thickness | |||
) | [inline] |
Equalize the virtual (outer) border of images ima1
and ima2
so that their size is equal and is at least min_thickness
.
[in,out] | ima1 | The first image whose border is to be equalizeed. |
[in,out] | ima2 | The second image whose border is to be equalizeed. |
[in] | min_thickness | The expected border minimum thickness of both images. |
ima1
has to be initialized.
ima2
has to be initialized.
min_thickness
, this routine is a no-op. References get().
void mln::border::fill | ( | const Image< I > & | ima, | |
const typename I::value & | v | |||
) | [inline] |
unsigned mln::border::find | ( | const Image< I > & | ima | ) | [inline] |
unsigned mln::border::get | ( | const Image< I > & | ima | ) | [inline] |
Get the virtual (outer) border thickness of image ima.
[in] | ima | The image. |
Referenced by adjust(), duplicate(), and equalize().
void mln::border::mirror | ( | const Image< I > & | ima | ) | [inline] |
void mln::border::resize | ( | const Image< I > & | ima, | |
unsigned | thickness | |||
) | [inline] |
Facade.
Resize the virtual (outer) border of image ima
to exactly thickness
.
[in,out] | ima | The image whose border is to be resized. |
[in] | thickness | The expected border thickness. |
ima
has to be initialized.References mln::primary(), and resize().