![]() Simd Library Documentation.Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The Pyramid structure provides storage and manipulation of pyramid images. More...
Detailed Descriptiontemplate<template< class > class A>
|
[in] | size | - a size of pyramid's base (lowest and biggest image). |
[in] | levelCount | - a number of pyramid levels. |
SIMD_INLINE Pyramid | ( | size_t | width, |
size_t | height, | ||
size_t | levelCount | ||
) |
Creates a new Pyramid structure with specified size.
[in] | width | - a width of pyramid's base (lowest and biggest image). |
[in] | height | - a height of pyramid's base (lowest and biggest image). |
[in] | levelCount | - a number of pyramid levels. |
SIMD_INLINE void Recreate | ( | Point< ptrdiff_t > | size, |
size_t | levelCount | ||
) |
Re-create a Pyramid structure with specified size.
[in] | size | - a size of pyramid's base (lowest and biggest image). |
[in] | levelCount | - a number of pyramid levels. |
SIMD_INLINE void Recreate | ( | size_t | width, |
size_t | height, | ||
size_t | levelCount | ||
) |
Re-create a Pyramid structure with specified size.
[in] | width | - a width of pyramid's base (lowest and biggest image). |
[in] | height | - a height of pyramid's base (lowest and biggest image). |
[in] | levelCount | - a number of pyramid levels. |
SIMD_INLINE size_t Size | ( | ) | const |
Gets number of levels in the pyramid.
SIMD_INLINE View< A > & operator[] | ( | size_t | level | ) |
Gets an image at given level of the pyramid.
[in] | level | - a level of the pyramid. |
SIMD_INLINE const View< A > & operator[] | ( | size_t | level | ) | const |
Gets an image at given level of the pyramid.
[in] | level | - a level of the pyramid. |
SIMD_INLINE View< A > & At | ( | size_t | level | ) |
Gets an image at given level of the pyramid.
[in] | level | - a level of the pyramid. |
SIMD_INLINE const View< A > & At | ( | size_t | level | ) | const |
Gets an image at on given level of the pyramid.
[in] | level | - a level of the pyramid. |
SIMD_INLINE View< A > & Top | ( | ) |
Gets an image at top level of the pyramid.
SIMD_INLINE const View< A > & Top | ( | ) | const |
Gets an image at top level of the pyramid.
SIMD_INLINE void Swap | ( | Pyramid< A > & | pyramid | ) |
Swaps two pyramids.
[in] | pyramid | - other pyramid. |