I previously create an issue (#436) about this feature request, but I finally figure out a simple way to make it support cross-shaped kernel (i.e. HYPER_CROSS). Since the previous version only implements cubic kernel in the coordinate_at functions defined at src/kernel_region.hpp, after writing some codes for the HYPER_CROSS, it supports the cross-shaped kernel now.
I previously create an issue (#436) about this feature request, but I finally figure out a simple way to make it support cross-shaped kernel (i.e. HYPER_CROSS). Since the previous version only implements cubic kernel in the
coordinate_at
functions defined atsrc/kernel_region.hpp
, after writing some codes for theHYPER_CROSS
, it supports the cross-shaped kernel now.test codes for verification:
the previous commit will output a wrong result like this:
after this commit, the problem is solved, and it prints:
hopefully this may help.