Newer
Older
#ifndef _FTL_ILW_CUDA_HPP_
#define _FTL_ILW_CUDA_HPP_
#include <ftl/cuda_common.hpp>
#include <ftl/rgbd/camera.hpp>
#include <ftl/cuda_matrix_util.hpp>
namespace ftl {
namespace cuda {
struct ILWParams {
float spatial_smooth;
float colour_smooth;
float cost_ratio;
float threshold;
uint flags;
};
static const uint kILWFlag_IgnoreBad = 0x0001;
static const uint kILWFlag_RestrictZ = 0x0002;
static const uint kILWFlag_SkipBadColour = 0x0004;
static const uint kILWFlag_ColourConfidenceOnly = 0x0008;
ftl::cuda::TextureObject<float> &d1,
ftl::cuda::TextureObject<float> &d2,
ftl::cuda::TextureObject<uchar4> &c1,
ftl::cuda::TextureObject<uchar4> &c2,
ftl::cuda::TextureObject<float4> &vout,
ftl::cuda::TextureObject<float> &eout,
const ILWParams ¶ms, int win,
cudaStream_t stream
);
void move_points(
ftl::cuda::TextureObject<float4> &v,
const ftl::rgbd::Camera &camera,
cudaStream_t stream
);
}
}
#endif // _FTL_ILW_CUDA_HPP_