ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Photo image inversion fails #8

Closed ossama-othman closed 7 years ago

ossama-othman commented 7 years ago

The MaRC::PhotoImageFactory::invert_h() and MaRC::PhotoImageFactory::invert_v() methods do not function as expected. Horizontal (left to right) inversion is essentially a no-op, and vertical (top-to-bottom) inversion incorrectly shuffles some of the photo image array elements. In either case, no inversion doesn't occur as expected.

This bug is triggered when using the INVERT MaRC input file keyword.

ossama-othman commented 7 years ago

See the changes to src/PhotoImageFactory.cpp: https://github.com/ossama-othman/MaRC/commit/b5823b6c58440db0c54288b51a27d24b018bc5b6#diff-55e3a3aa6a087baa8d3c095e35445779