maweigert / gputools

GPU accelerated image/volume processing in Python
BSD 3-Clause "New" or "Revised" License
108 stars 20 forks source link

Nearest neighbour interpolation in `affine_transform` #13

Closed VolkerH closed 5 years ago

VolkerH commented 5 years ago

It appears there is a bug in https://github.com/maweigert/gputools/blob/master/gputools/transforms/kernels/transformations.cl

When selecting nearest neighbour the preprocessor defines SAMPLERFILTER but what is needed is SAMPLER_FILTER. Credits to @jni for spotting this. image

maweigert commented 5 years ago

Hi @VolkerH,

this was indeed the case - thank for spotting! Should be fixed in the latest develop branch. Thanks again!