In photoshop, you can use various tools like lasso, rectangle, magic wand to select sections of the image and applying processing to the selected area only.
I see that there is the concept of a mask in pixinsight, but how do I select specific areas in the mask.