Kernel gymnastics

A I am reminded of the exchange between @Reptorian and @garagecoder (Reptorian G’MIC Filters) about a variable kernel size box filter based on a mask. I wonder a if there are new ideas or development in this area, and b what the applications have been.

Theoretically, you can create more accurate emulation of field of depth stimulation. That’s one example I can think of. Another theoretical application is better edge detection. Garagecoder’s code is quite fast, however I definitely would appreciate a way to use custom convolution with variable kernel size, and being able to blur by map. It’ll open door to new things.