pad.h File Reference
Padding.
More...
|
Functions |
void | extend_channel (unsigned char **input_channel, coeff_t **output_channel, int input_width, int input_height, int output_width, int output_height) |
void | extract_channel (coeff_t **input_channel, unsigned char **output_channel, int input_width, int input_height, int output_width, int output_height) |
Detailed Description
The library expects that the image consists of square blocks of certain size. Namely, 2^N or 2^N + 1 depending on selected wavelet transform mode. Nevertheless, most real-life images do not meet this strict requirement. That`s why we need to pad boundary image blocks to the full size. Missing data is obtained using pixel mirroring.