Response to the following problem:
Bit plane encoding is more effective when the pixels are encoded using a Gray code. The Gray code assigns numerically adjacent values binary codes that differ by only 1 bit. To convert from the standard binary code b0b1b2. . . b7 to the Gray code b0,b1,b2 ............ b7 we can use the equations

Convert the test images sena . img and omaha. img to a Gray code representation, and bit plane encode. Compare with the results for the non-Gray-coded representation.