|
template<typename A , typename I > |
A::result | compute (const Accumulator< A > &a, const Image< I > &input) |
| Make an accumulator compute the pixels of the image input .
|
|
template<typename Meta_Accu , unsigned Dir, typename I , typename O > |
void | line (const Image< I > &input, const typename I::site &p_start, def::coord len, def::coord half_length, Image< O > &output) |
|
template<typename A , typename I > |
| mln_meta_accu_result (A, util::pix< I >) compute(const Meta_Accumulator< A > &a |
| Make an accumulator compute the pixels of the image input .
|
|
template<typename A , typename I > |
void | take (const Image< I > &input, Accumulator< A > &a) |
| Make an accumulator take the pixels of the image input .
|
|
Namespace of accumulators.
template<typename A , typename I >
A::result mln::accu::compute |
( |
const Accumulator< A > & |
a, |
|
|
const Image< I > & |
input |
|
) |
| |
|
inline |
Make an accumulator compute the pixels of the image input
.
- Parameters
-
[in] | input | The input image. |
[in] | a | An accumulator. |
This routine runs:
a.take(make::pix(input, p)); on all pixels on the images.
- Warning
- This routine does not perform a.init().
Definition at line 130 of file accu/compute.hh.
template<typename Meta_Accu , unsigned Dir, typename I , typename O >
void mln::accu::line |
( |
const Image< I > & |
input, |
|
|
const typename I::site & |
p_start, |
|
|
def::coord |
len, |
|
|
def::coord |
half_length, |
|
|
Image< O > & |
output |
|
) |
| |
Line an accumulator onto the pixel values of the image input
.
\param[in] input The input image.
\param[in] p_start The starting site of the line.
\param[in] len The line length.
\param[in] half_length The half length of the line.
\param[in,out] output The resulting image.
This routine runs: \n
tmp = \p a \n
tmp.init() \n
accu::take(\p input, tmp) \n
return tmp.to_result() \n
template<typename A , typename I >
void mln::accu::take |
( |
const Image< I > & |
input, |
|
|
Accumulator< A > & |
a |
|
) |
| |
|
inline |
Make an accumulator take the pixels of the image input
.
- Parameters
-
[in] | input | The input image. |
[in,out] | a | The accumulator. |
This routine runs:
for all p of input
, a.take
( pix(input
, p) )
- Warning
- This routine does not perform a.init().
Definition at line 87 of file take.hh.