31 Kaleidoscope(
int nImage,
int width,
int height,
int nComponents,
double scaleDown,
double dimConst)
34 if (
initKaleidoscope(&handler, nImage, width, height, nComponents, scaleDown) != 0)
35 throw std::runtime_error(
"Can't init kaleidoscope structure for these inputs");
45 void processImage(uint8_t *inImg, uint8_t *outImg,
size_t size,
double dimConst)
Kaleidoscope effect generator.
~Kaleidoscope()
Destroy the Kaleidoscope object.
void processImage(uint8_t *inImg, uint8_t *outImg, size_t size)
Creates kaleidoscope effect. Uses dim constant provided in constructor.
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.
int initKaleidoscope(KaleidoscopeHandle *handler, int n, int width, int height, int nComponents, double scaleDown)
Initializes kaleidoscope handler.
void processKaleidoscope(KaleidoscopeHandle *handler, double k, unsigned char *imgIn, unsigned char *imgOut)
Applies kaleidoscope effect to image.
void deInitKaleidoscope(KaleidoscopeHandle *handler)
Deinitializes kaleidoscope handler.
Struct for kaleidoscope effect generator.