Skip to content
Snippets Groups Projects
Commit f6d49adb authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Restrict to motion vec of 3D neigh

parent 1b356e0d
No related branches found
No related tags found
2 merge requests!116Implements #133 point alignment,!114Ongoing #133 improvements
Pipeline #14651 passed
......@@ -58,7 +58,7 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
}
_phase1(fs, win, stream);
//for (int j=0; j<3; ++j) {
_phase2(fs, 0.5f, stream);
_phase2(fs, 0.4f, stream);
//}
// TODO: Break if no time left
......
......@@ -163,12 +163,12 @@ __global__ void move_points_kernel(
for (int v=-MOTION_RADIUS; v<=MOTION_RADIUS; ++v) {
for (int u=-MOTION_RADIUS; u<=MOTION_RADIUS; ++u) {
const float4 vecn = ev.tex2D((int)x+u,(int)y+v);
//const float3 pn = make_float3(p.tex2D((int)x+u,(int)y+v));
//if (pn.x == MINF) continue;
const float3 pn = make_float3(p.tex2D((int)x+u,(int)y+v));
if (pn.x == MINF) continue;
//const float s = ftl::cuda::spatialWeighting(pn, make_float3(world), 0.04f);
contrib += vecn.w;
vec += vecn.w * vecn;
const float s = ftl::cuda::spatialWeighting(pn, make_float3(world), 0.01f);
contrib += vecn.w * s;
vec += vecn.w * s * vecn;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment