i want to create a simple image class as native module which is capable of performing image filtering (sobel operators, etc.) and transformation(eg. hough, color to gray, etc.) Both are basically a function which returns a new image.
imagine the api like
Code: Select all
image = Image(camera.capture(), 320, 240, Image.RGB565)
gray = image.transform(Image.grayscale)
edges = gray.filter(Image.sobel3)
Code: Select all
edges = Image(camera.capture(), 320, 240, Image.RGB565).transform(Image.grayscale).filter(Image.sobel3)
My image should look at least like this in c:
Code: Select all
typedef struct s_image_t {
unsigned int width;
unsigned int height;
unsigned int type;
char const *buffer;
}
Can someone give me some hints here?