[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Functions | |
template<... > | |
void | initImage (...) |
Write a value to every pixel in an image or rectangular ROI. | |
template<... > | |
void | initImageBorder (...) |
Write value to the specified border pixels in the image. | |
template<... > | |
void | initImageIf (...) |
Write value to pixel in the image if mask is true. | |
template<... > | |
void | initImageWithFunctor (...) |
Write the result of a functor call to every pixel in an image or rectangular ROI. |
Init images or image borders
void vigra::initImage | ( | ... | ) |
Write a value to every pixel in an image or rectangular ROI.
This function can be used to init the image. It uses an accessor to access the pixel data.
The initial value can either be a constant of appropriate type (compatible with the destination's value_type), or a functor with compatible result_type. These two cases are automatically distinguished when FunctorTraits<FUNCTOR>::isInitializer
yields VigraTrueType
. Since the functor is passed by const
reference, its operator()
must be const, and its internal state may need to be mutable
.
Declarations:
pass arguments explicitly:
use argument objects in conjunction with Argument Object Factories :
Usage:
<b>\#include</b> \<<a href="initimage_8hxx-source.html">vigra/initimage.hxx</a>\><br> Namespace: vigra
Initialize with a constant:
Initialize with a functor:
Required Interface:
void vigra::initImageWithFunctor | ( | ... | ) |
Write the result of a functor call to every pixel in an image or rectangular ROI.
This function can be used to init the image by calling the given functor for each pixel. It uses an accessor to access the pixel data. The functor is passed by reference, so that its internal state can be updated in each call.
Declarations:
pass arguments explicitly:
use argument objects in conjunction with Argument Object Factories :
Usage:
<b>\#include</b> \<<a href="initimage_8hxx-source.html">vigra/initimage.hxx</a>\><br> Namespace: vigra
Required Interface:
void vigra::initImageIf | ( | ... | ) |
Write value to pixel in the image if mask is true.
This function can be used to init a region-of-interest of the image. It uses an accessor to access the pixel data.
The initial value can either be a constant of appropriate type (compatible with the destination's value_type), or a functor with compatible result_type. These two cases are automatically distinguished when FunctorTraits<FUNCTOR>::isInitializer
yields VigraTrueType
. Since the functor is passed by const
reference, its operator()
must be const, and its internal state may need to be mutable
.
Declarations:
pass arguments explicitly:
use argument objects in conjunction with Argument Object Factories :
Usage:
<b>\#include</b> \<<a href="initimage_8hxx-source.html">vigra/initimage.hxx</a>\><br> Namespace: vigra
Required Interface:
void vigra::initImageBorder | ( | ... | ) |
Write value to the specified border pixels in the image.
A pixel is initialized if its distance to the border is at most 'borderwidth'. It uses an accessor to access the pixel data.
The initial value can either be a constant of appropriate type (compatible with the destination's value_type), or a functor with compatible result_type. These two cases are automatically distinguished when FunctorTraits<FUNCTOR>::isInitializer
yields VigraTrueType
. Since the functor is passed by const
reference, its operator()
must be const, and its internal state may need to be mutable
.
Declarations:
pass arguments explicitly:
use argument objects in conjunction with Argument Object Factories :
Usage:
<b>\#include</b> \<<a href="initimage_8hxx-source.html">vigra/initimage.hxx</a>\><br> Namespace: vigra
Required Interface:
see initImage()
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|