pyramid_down and you give it the downsampling amount as a template argument.
Attach a file by drag & drop or click to upload