Solved by InnovArul in post #4 
              
              
                You are right. Sometimes, the images might not exactly range from [0, 255]. i.e, it may be [10, 250]. 
If you want to min-max normalize according to the definition, you have to apply the formula.