Band pass filter only for pixels inside a mask

If you’re using the gimp plugin, you can choose the layer from the interface.