Added code so the horizon is correct in LUT classifier.