38 #ifndef PCL_CUDA_DEBAYERING_H_ 39 #define PCL_CUDA_DEBAYERING_H_ 41 #include <pcl/cuda/point_cloud.h> 42 #include <pcl/io/openni_camera/openni_image.h> 52 : width (width), height (height), stride (stride)
63 return ((xIdx % stride == 0) & (yIdx % stride == 0));
67 template <
template <
typename>
class Storage>
76 DebayerBilinear (
unsigned char *bayer_image,
unsigned width,
unsigned height);
95 template<
template <
typename>
class Storage>
101 compute (
const boost::shared_ptr<openni_wrapper::Image>& bayer_image, RGBImageType& rgb_image)
const;
104 template <
template <
typename>
class Storage>
110 YUV2RGBKernel (
unsigned char *yuv_image,
unsigned width,
unsigned height);
115 template<
template <
typename>
class Storage>
121 compute (
const boost::shared_ptr<openni_wrapper::Image>& yuv_image, RGBImageType& rgb_image)
const;
124 template<
template <
typename>
class Storage>
130 computeBilinear (
const boost::shared_ptr<openni_wrapper::Image>& bayer_image, RGBImageType& rgb_image)
const;
__host__ __device__ bool operator()(int i)
Storage< OpenNIRGB >::type RGBImageType
downsampleIndices(int width, int height, int stride)
Storage< OpenNIRGB >::type RGBImageType
Storage< OpenNIRGB >::type RGBImageType
Simple structure holding RGB data.