Nearest-neighbor and linear interpolations of a PGM image and their implementation using texture filtering.