Skip to content

imgcodecs: tiff: Imgcodecs_Tiff_decode_Huge test is failed #26893

@Kumataro

Description

@Kumataro

System Information

OpenCV version: 4.x ( 0e17a87 )
Operating System / Platform: Ubuntu 24.04
Compiler & compiler version: GCC 13.2.0

Detailed description

Imgcodecs_Tiff_decode_Huge test is failed.

$ ./bin/opencv_test_imgcodecs --test_tag_enable=mem_6gb,verylong,debug_verylong --gtest_filter="*Huge*"
CTEST_FULL_OUTPUT
OpenCV version: 4.12.0-dev
OpenCV VCS version: 4.11.0-116-g0e17a879d7
Build type: Debug
  :
  :
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge
[ RUN      ] Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge.regression/0, where GetParam() = (1073479680, ("CV_8UC1", 0), IMREAD_COLOR | )
[       OK ] Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge.regression/0 (6366 ms)
[ RUN      ] Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge.regression/1, where GetParam() = (2147483648, ("CV_16UC4", 26), IMREAD_COLOR | )
/home/kmtr/work/opencv4/modules/imgcodecs/test/test_tiff.cpp:243: Failure
Expected equality of these values:
  0xA2
    Which is: 162
  img.at<Vec3b>(0, 0) [0]
    Which is: '\xA0' (160)
/home/kmtr/work/opencv4/modules/imgcodecs/test/test_tiff.cpp:245: Failure
Expected equality of these values:
  0xA0
    Which is: 160
  img.at<Vec3b>(0, 0) [2]
    Which is: '\xA2' (162)
  :
  :
[  FAILED  ] Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge.regression/1, where GetParam() = (2147483648, ("CV_16UC4", 26), IMREAD_COLOR | ) (3109 ms)
[----------] 2 tests from Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge (9475 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (9476 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] Imgcodecs_Tiff/Imgcodecs_Tiff_decode_Huge.regression/1, where GetParam() = (2147483648, ("CV_16UC4", 26), IMREAD_COLOR | )

 1 FAILED TEST
  YOU HAVE 216 DISABLED TESTS

Reason is here. This IMREAD_MIX_COLOR should be pure IMREAD_COLOR, not IMREAD_COLOR | IMREAD_COLOR_RGB .

IMREAD_MIX_COLOR = IMREAD_COLOR | IMREAD_COLOR_RGB ,

And IMREAD_COLOR (= IMCOLOR_BGR) and IMREAD_COLOR_RGB can not be set at the same time.

Steps to reproduce

 ./bin/opencv_test_imgcodecs --test_tag_enable=mem_6gb,verylong,debug_verylong --gtest_filter="*Huge*"

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions