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, size_t size, double dimConst) |
| Creates kaleidoscope effect.
|
|
void | processImage (uint8_t *inImg, uint8_t *outImg, size_t size) |
| 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 32 of file kaleidoscope.hpp.
34 {
36 throw std::runtime_error("Can't init kaleidoscope structure for these inputs");
37 }
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 62 of file kaleidoscope.hpp.
void deInitKaleidoscope(KaleidoscopeHandle *handler)
Deinitializes kaleidoscope handler.
◆ processImage() [1/2]
void kalos::Kaleidoscope::processImage |
( |
uint8_t * | inImg, |
|
|
uint8_t * | outImg, |
|
|
size_t | size ) |
|
inline |
Creates kaleidoscope effect. Uses dim constant provided in constructor.
- Parameters
-
inImg | Input image |
outImg | Output image |
size | Size of the images |
Definition at line 57 of file kaleidoscope.hpp.
void processImage(uint8_t *inImg, uint8_t *outImg, size_t size, double dimConst)
Creates kaleidoscope effect.
◆ processImage() [2/2]
void kalos::Kaleidoscope::processImage |
( |
uint8_t * | inImg, |
|
|
uint8_t * | outImg, |
|
|
size_t | size, |
|
|
double | dimConst ) |
|
inline |
Creates kaleidoscope effect.
- Parameters
-
inImg | Input image |
outImg | Output image |
size | Size of the images |
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(KaleidoscopeHandle *handler, double k, 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: