Related functions for Simd::Pyramid structure.
More...
|
template<template< class > class A> |
SIMD_INLINE void | Fill (Pyramid< A > &pyramid, uint8_t value) |
| Fills pixels data of images in the pyramid by given value. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | Build (Pyramid< A > &pyramid,::SimdReduceType reduceType, bool compensation=true) |
| Builds the pyramid (fills upper levels on the base of the lowest level). More...
|
|
Point< ptrdiff_t > | Scale (Point< ptrdiff_t > size, int scale=2) |
| Scales size of an image. More...
|
|
Related functions for Simd::Pyramid structure.
void Fill |
( |
Pyramid< A > & |
pyramid, |
|
|
uint8_t |
value |
|
) |
| |
Fills pixels data of images in the pyramid by given value.
- Parameters
-
[out] | pyramid | - a pyramid. |
[in] | value | - a value to fill the pyramid. |
Builds the pyramid (fills upper levels on the base of the lowest level).
- Parameters
-
[out] | pyramid | - a built pyramid. |
[in] | reduceType | - a type of function used for image reducing. |
[in] | compensation | - a flag of compensation of rounding. It is relevant only for SimdReduce3x3 and SimdReduce5x5. It is equal to 'true' by default. |
SIMD_INLINE Point< ptrdiff_t > Scale |
( |
Point< ptrdiff_t > |
size, |
|
|
int |
scale = 2 |
|
) |
| |
Scales size of an image.
- Note
- This function is useful for Pyramid structure.
- Parameters
-
[in] | size | - an original image size. |
[in] | scale | - a scale. It must be a multiple of 2. By default it is equal to 2. |
- Returns
- scaled size.