can you stretch an image with the histogram function, and then apply a mask to the feature you want to keep, and then invert the mask protecting the feature you brought out and “deintensify” the background?
Yes, in theory you can, but the difficulty is in finding a Histo stretch that will correctly 'deintensify' the previously stretched image. In other words, you need to find the 'inverse' of your first stretch.
However, if you stretch the image as planned, to get the area you are interested in looking the way you want it to, and then make a duplicate (clone) of this modified image, and then make a mask from this cloned image - revealing only those areas that you want to change.
Now, go back to the first, modified, image and 'undo' the histo transform - don't worry, the Histo process still 'knows' what your setup parameters were. Now you apply the 'mask' to the original image, and then re-apply the Histo stretch 'through' the mask.
Is this what you are after?
Cheers,