finish kernels for min and max value of logluminance