Yes, the algorithm increases the range of the colors to span the maximum range from 0-255, but it doesn’t adjust the contrast or perform a gamma correction. That would be a post-processing step.
Is that something that the algorithm could perform after expanding the maximum range?