I am trying to do convolutions on an image.
However, at different pixels of the image, I want to perform convolution operation at different selected neighbors. So is there a way to use different masks at different pixels?
I know how to apply the same mask for all pixels, which means I can perform convolution operation at same selected neighbors.
One possible solution I have: If there is a way to know where the filter is right now, then I can apply different masks.
Thank you very much!