This PR adds a nearest-neighbor interpolation option that can be specified in the command line. Note that I had to pull in additional code to allow for parsing the filename as a positional argument in any order, but that could be removed if we can assume that flags must precede the file name if flags are passed.
Note that although the inspiration for this PR is #6 , this PR doesn't fully resolve that issue—I still get spurious color in some grayscale images, but it improves the display in most of them.
This PR adds a nearest-neighbor interpolation option that can be specified in the command line. Note that I had to pull in additional code to allow for parsing the filename as a positional argument in any order, but that could be removed if we can assume that flags must precede the file name if flags are passed.
Note that although the inspiration for this PR is #6 , this PR doesn't fully resolve that issue—I still get spurious color in some grayscale images, but it improves the display in most of them.