s=T(r)=(L−1)−rs= T(r) = (L-1)-rs=T(r)=(L−1)−r
In an 8-bit grayscale image, the max intensity value is: L−1=28−1=255L-1=2^{8}-1=255L−1=28−1=255