Autolevels of texture sample

Hi, is there a way to get an autolevels like in photoshop or substance designer of a texture sample?

Thanks