Do we have a function to invert gray image values?

Wasn’t v a value between 0 and 100? I might be wrong