kaleidoscope 1.4.0
 
Loading...
Searching...
No Matches
kaleidoscope.h
Go to the documentation of this file.
1#ifndef _KALEIDOSCOPE_H_
2#define _KALEIDOSCOPE_H_
3
7struct Point2D_t {
8 int x;
9 int y;
10};
11typedef struct Point2D_t Point2D;
12
22 unsigned long long srcOffset;
24 unsigned long long dstOffset;
25};
27
44
51void getKaleidoscopeVersion(int *major, int *minor, int *patch);
52
58
64
72void interpolate(TransformationInfo *dataOut, const TransformationInfo *dataIn, int width, int height);
73
82void rotatePoints(TransformationInfo *outData, const TransformationInfo *orgData, int width, int height, double angle);
83
92void sliceTriangle(TransformationInfo *transformPtr, int width, int height, int n, double scaleDown);
93
104int initKaleidoscope(KaleidoscopeHandle *handler, int n, int width, int height, int nComponents, double scaleDown);
105
113void processKaleidoscope(const KaleidoscopeHandle *handler, double k, const unsigned char *imgIn,
114 unsigned char *imgOut);
115
121
122#endif // _KALEIDOSCOPE_H_
void getKaleidoscopeVersion(int *major, int *minor, int *patch)
Get the Kaleidoscope Library version as integer.
void processKaleidoscope(const KaleidoscopeHandle *handler, double k, const unsigned char *imgIn, unsigned char *imgOut)
Applies kaleidoscope effect to image.
char * getKaleidoscopeLibraryInfo()
Get the Kaleidoscope Library info as string.
void sliceTriangle(TransformationInfo *transformPtr, int width, int height, int n, double scaleDown)
Slices a suitable triangle from image.
int initKaleidoscope(KaleidoscopeHandle *handler, int n, int width, int height, int nComponents, double scaleDown)
Initializes kaleidoscope handler.
char * getKaleidoscopeVersionString()
Get the Kaleidoscope Library version as string.
void interpolate(TransformationInfo *dataOut, const TransformationInfo *dataIn, int width, int height)
A simple interpolation function. Internal use only.
void rotatePoints(TransformationInfo *outData, const TransformationInfo *orgData, int width, int height, double angle)
Rotates the coordinates of sliced triangle. Internal use only.
void deInitKaleidoscope(KaleidoscopeHandle *handler)
Deinitializes kaleidoscope handler.
Struct for kaleidoscope effect generator.
int height
Image height.
int width
Image width.
long long nPoints
Total number of points of transfer function.
struct TransformationInfo_t * pTransferFunc
Transformation info.
unsigned char nComponents
Number of components (eg 3 for RGB)
Data struct for pixel locations.
Definition kaleidoscope.h:7
Data struct for transformation information.
unsigned long long srcOffset
Offset from source image.
unsigned long long dstOffset
Offset from destination image.
Point2D srcLocation
Location from source image.
Point2D dstLocation
Location to destination image.