convertation for tophat/blackhat/gradient only