First time here? Check out the FAQ!
This seems to work fine, despite of the fact that division by zero may occur. div = max / float(255) #calculate the nor