The Wolfram tutorial for image processing gives these equations to convert between an image y coordinate and an array row index, r
But these equations are not algebraically consistent. If you solve the first for y, you don't get the second!
It seems to me that h is used differently in the two equations. In the first equation h is actually the number of array rows, and in the second it's really the number of rows+1, which corresponds to the depiction of h in the earlier figures of the tutorial as the topmost "coordinate" in an image. If this is so, surely a different letter should be used.
Is there really this very basic error in the documentation? Or am I missing something fundamental?