splatting icon indicating copy to clipboard operation
splatting copied to clipboard

Softsplat Gaussian weighted interpolation

Open ambitionforcomputervision opened this issue 3 years ago • 0 comments

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.