mirror of
https://github.com/opencv/opencv.git
synced 2026-12-03 05:33:03 -06:00
Apply the existing lookup table to binary 8-bit PGM/PPM samples when maxval is below 255, clamping out-of-range values as the ASCII path already does. The maxval-255 fast path and 16-bit behavior are unchanged. Add generated PGM and PPM cases comparing ASCII and binary decoding across several maxvals and read modes; no external image data is needed.