40#include <pcl/io/openni_camera/openni_image.h>
41#include <thrust/tuple.h>
42#include <pcl/pcl_exports.h>
100 float depth =
data_ [idx];
105 if (depth == 0 | std::isnan(depth) | std::isinf(depth))
165 template <
typename Tuple>
169 float depth = thrust::get<0> (
t);
170 int idx = thrust::get<1> (
t);
179 if (depth == 0 | std::isnan(depth) | std::isinf(depth))
248 return make_float3 (0,0,0);
251 return make_float3 (0,0,0);
286 return make_float3 ((
float)
counter,
Iterator class for point clouds with or without given indices.
float disparity_threshold_
DisparityBoundSmoothing(int width, int height, int window_size, float focal_length, float baseline, float disparity_threshold, float *data, float *raw_data)
__host__ __device__ float disparity2depth(float disparity)
__host__ __device__ float depth2disparity(float depth)
__host__ __device__ float operator()(int idx)
__host__ __device__ float clampToDisparityBounds(float avg_depth, float depth)
float3 * disparity_helper_map_
__host__ __device__ float operator()(Tuple t)
DisparityClampedSmoothing(float *data, float3 *disparity_helper_map, int width, int height, int window_size)
__host__ __device__ float disparity2depth(float disparity)
DisparityHelperMap(float *data, int width, int height, int window_size, float baseline, float focal_length, float disp_thresh)
__host__ __device__ float3 operator()(int idx)
__host__ __device__ float depth2disparity(float depth)