Is there a UE4 material function like minimum or maximum in Photoshop?

Hi folks,

I’d like to expand a mask like a cavity mask, in Photoshop you can do this with the minimum and maximum filters.

Is there such a feature in UE4?

Cheers

Greg

EDIT something like this

http://uk.mathworks.com/help/images/morphology-fundamentals-dilation-and-erosion.html?s_tid=gn_loc_drop