Abhishek Gola a807f233b0 Merge pull request #31224 from Amanpal9/codex/remap-flip-coordinates
The remap tutorial uses width - x and height - y for reflected coordinates. At zero these expressions sample outside the image, and the flip skips the first source column or row. This change uses width - 1 - x and height - 1 - y in the C++, Java, and Python samples and updates the tutorial equations.

Compared the Python sample with cv.flip for all three flip modes across six image shapes, including single-row and single-column inputs. All 18 comparisons failed before the change and passed afterward. The C++ sample also passed a syntax check.
2026-11-30 15:55:38 +05:30
2026-09-17 12:00:11 +03:00
2020-02-26 15:12:45 +03:00
2018-10-11 17:57:51 +00:00
2025-08-01 09:50:10 +03:00

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

Description
Languages
C++ 87.7%
C 3.1%
Python 2.9%
CMake 2%
Java 1.5%
Other 2.6%