Kaleidoscope effect generator.
More...
#include <kaleidoscope.hpp>
|
| | Kaleidoscope (int nImage, int width, int height, int nComponents, double scaleDown, double dimConst) |
| | Construct a new Kaleidoscope object.
|
| |
| void | processImage (uint8_t *inImg, uint8_t *outImg, double dimConst) |
| | Creates kaleidoscope effect.
|
| |
| void | processImage (uint8_t *inImg, uint8_t *outImg) |
| | Creates kaleidoscope effect. Uses dim constant provided in constructor.
|
| |
| | ~Kaleidoscope () |
| | Destroy the Kaleidoscope object.
|
| |
Kaleidoscope effect generator.
Definition at line 16 of file kaleidoscope.hpp.
◆ Kaleidoscope()
| kalos::Kaleidoscope::Kaleidoscope |
( |
int | nImage, |
|
|
int | width, |
|
|
int | height, |
|
|
int | nComponents, |
|
|
double | scaleDown, |
|
|
double | dimConst ) |
|
inline |
Construct a new Kaleidoscope object.
- Parameters
-
| [in] | nImage | Number of images for effect |
| [in] | width | Image width |
| [in] | height | Image height |
| [in] | nComponents | Number of color components (eg 3 for RGB) |
| [in] | scaleDown | Scale down ratio to shrink image. Must be between 0.0 and 1.0 |
| [in] | dimConst | Variable to dim background. Should be between 0.0 and 1.0 |
Definition at line 31 of file kaleidoscope.hpp.
33 {
35 {
36 throw std::invalid_argument("Can't init kaleidoscope structure for these inputs");
37 }
38 }
KaleidoscopeHandle handler
int initKaleidoscope(KaleidoscopeHandle *handler, int n, int width, int height, int nComponents, double scaleDown)
Initializes kaleidoscope handler.
◆ ~Kaleidoscope()
| kalos::Kaleidoscope::~Kaleidoscope |
( |
| ) |
|
|
inline |
Destroy the Kaleidoscope object.
Definition at line 61 of file kaleidoscope.hpp.
void deInitKaleidoscope(KaleidoscopeHandle *handler)
Deinitializes kaleidoscope handler.
◆ processImage() [1/2]
| void kalos::Kaleidoscope::processImage |
( |
uint8_t * | inImg, |
|
|
uint8_t * | outImg ) |
|
inline |
Creates kaleidoscope effect. Uses dim constant provided in constructor.
- Parameters
-
| inImg | Input image |
| outImg | Output image |
Definition at line 56 of file kaleidoscope.hpp.
void processImage(uint8_t *inImg, uint8_t *outImg, double dimConst)
Creates kaleidoscope effect.
◆ processImage() [2/2]
| void kalos::Kaleidoscope::processImage |
( |
uint8_t * | inImg, |
|
|
uint8_t * | outImg, |
|
|
double | dimConst ) |
|
inline |
Creates kaleidoscope effect.
- Parameters
-
| inImg | Input image |
| outImg | Output image |
| dimConst | Variable to dim background. Should be between 0.0 and 1.0 |
Definition at line 46 of file kaleidoscope.hpp.
47 {
49 }
void processKaleidoscope(const KaleidoscopeHandle *handler, double k, const unsigned char *imgIn, unsigned char *imgOut)
Applies kaleidoscope effect to image.
◆ handler
| double kalos::Kaleidoscope::k |
|
private |
The documentation for this class was generated from the following file: