splatting
splatting copied to clipboard
Softsplat Gaussian weighted interpolation
Hi,
Thanks for sharing your code. I am trying to implement a Gaussian weighted interpolation for the softsplat. For example:
int left = intNorthwestX;
int right = intNortheastX;
int down = intSouthwestY;
int up = intNortheastY;
float northwest = expf(-(( powf( outputX - (float) (left), 2 ) + powf( outputY - (float) (up), 2)))); \
float northeast = expf(-(( powf( outputX - (float) (right), 2 ) + powf( outputY - (float) (up), 2)))); \
float southwest = expf(-(( powf( outputX - (float) (left), 2 ) + powf( outputY - (float) (down), 2)))); \
float southeast = expf(-(( powf( outputX - (float) (right), 2 ) + powf( outputY - (float) (down), 2)))); \
For the cuda code, does the code change only on line 42-49 in the forward and 114-121 in the backward (in splatting.cu?) or should I also change code somewhere else?
Thanks in advance.