00001 #ifndef __BILATERAL_H__ 00002 #define __BILATERAL_H__ 00003 #include <stdint.h> 00004 #include "image.h" 00005 00006 #define USE_256_BINS 00007 00008 #if(defined(USE_8_BINS)) 00009 #define NUM_BINS 8 00010 #define BIN_SIZE 32 00011 #elif(defined(USE_32_BINS)) 00012 #define NUM_BINS 32 00013 #define BIN_SIZE 8 00014 #elif(defined(USE_64_BINS)) 00015 #define NUM_BINS 64 00016 #define BIN_SIZE 4 00017 #elif(defined(USE_128_BINS)) 00018 #define NUM_BINS 128 00019 #define BIN_SIZE 2 00020 #elif(defined(USE_256_BINS)) 00021 #define NUM_BINS 265 00022 #define BIN_SIZE 1 00023 #endif 00024 00025 spectral::Image * 00026 bilateral_filter(uint32_t radius, 00027 uint32_t threshold, 00028 uint32_t tile_size, 00029 bool use_linear, 00030 const spectral::Image *image); 00031 00032 #endif