RoiPooling layer of rcnn family. working on both smaller and larger pool size than the region
There are four different conditions that could happend during roi pooling that the code takes care of:
- if the height and width of the pool is smaller than the height and width of the region
- if the height and width of the pool is bigger than the height and width of the region
- if the height of the pool is smaller than the height of the region but the width of the pool is bigger
- if the height of the pool is bigger than the height of the region but the width of the pool is smaller
you can see conditions number 1 and 2 from the image