components.h 519 B

123456789101112131415161718192021
  1. #include <unistd.h>
  2. #include <error.h>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <errno.h>
  6. #include <assert.h>
  7. //#include <stddef.h>
  8. #ifndef _COMPONENTS_H
  9. #define _COMPONENTS_H
  10. /* Separate compoents of source 8bit RGB image */
  11. template<typename T>
  12. void rgbToComponents(T d_r, T d_g, T d_b, unsigned char * src, int width, int height);
  13. /* Copy a 8bit source image data into a color compoment of type T */
  14. //template<typename T>
  15. //void bwToComponent(T *d_c, unsigned char * src, int width, int height);
  16. #endif