The source code attached with the papers:  Learnable Pooling Regions for Image Classification (http://arxiv.org/abs/1301.3516) and Learning Smooth Pooling Regions for Visual Recognition (https://www.d2.mpi-inf.mpg.de/sites/default/files/bmvc13_main.pdf).