From 3b74b52fb00dacd840546cab67d44ec62001750e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 07:06:23 +0000 Subject: [PATCH] Add proper cross-references to imread pipeline documentation - Add @ref links to INTER_LINEAR_EXACT interpolation method - Replace wildcard notation with explicit flag names and @ref links - Improve documentation navigation with proper cross-references Co-authored-by: ShiqiYu <7151133+ShiqiYu@users.noreply.github.com> --- modules/imgcodecs/include/opencv2/imgcodecs.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/imgcodecs/include/opencv2/imgcodecs.hpp b/modules/imgcodecs/include/opencv2/imgcodecs.hpp index 58ffcfdf05..ed034eecff 100644 --- a/modules/imgcodecs/include/opencv2/imgcodecs.hpp +++ b/modules/imgcodecs/include/opencv2/imgcodecs.hpp @@ -367,10 +367,10 @@ The imread() function follows this internal processing pipeline: from the decoder and returned alongside the image. 9. **Image Scaling**: If IMREAD_REDUCED_* flags were specified and the decoder doesn't support native - downsampling, the image is resized using INTER_LINEAR_EXACT interpolation to the requested scale: - - IMREAD_REDUCED_*_2 flags: 1/2 scale (50% of original size) - - IMREAD_REDUCED_*_4 flags: 1/4 scale (25% of original size) - - IMREAD_REDUCED_*_8 flags: 1/8 scale (12.5% of original size) + downsampling, the image is resized using @ref INTER_LINEAR_EXACT interpolation to the requested scale: + - @ref IMREAD_REDUCED_GRAYSCALE_2, @ref IMREAD_REDUCED_COLOR_2: 1/2 scale (50% of original size) + - @ref IMREAD_REDUCED_GRAYSCALE_4, @ref IMREAD_REDUCED_COLOR_4: 1/4 scale (25% of original size) + - @ref IMREAD_REDUCED_GRAYSCALE_8, @ref IMREAD_REDUCED_COLOR_8: 1/8 scale (12.5% of original size) 10. **EXIF Orientation**: If EXIF orientation metadata is present and IMREAD_IGNORE_ORIENTATION flag is not set, the image is transformed (rotated/flipped) to match the correct visual orientation