Hello,
I have received a piece of code which compress the image direct from a camera to a encoded file using Rice algorithm.
void code_riceI(unsigned short int *pic, const int X, const int Y, const int n, char *fn)
- *pic: pointer to a field of 16bit image (bayer encoded - as sent from the camera, the picture has the size of X*Y)
- X: width of that image
- Y: height of that image
- n: a number for the compression (should be 3,4,5 or 6) -> gives you different compression size
- fn is a filename, to write out the coded picture -> not needed,
But I want to modify the code to take an image file as input.
Is there any idea?
Thank you