Added LUT normalization. About to implement resampling