Band pass filter only for pixels inside a mask

Pinging again. To explain I want to apply the filters to a subregion of the image that would be a rectangle. I am looking for sample gmic command line to achieve this,.