1. 20 9月, 2022 1 次提交
  2. 29 8月, 2022 1 次提交
  3. 03 1月, 2022 1 次提交
  4. 19 11月, 2021 1 次提交
    • N
      Add warning message to imread() · 79d4e865
      nickjackolson 提交于
      Add a warning message using CV_LOG__WARNING().
      This way api behaviour is preserved. Outputs are
      the same but user gets an extra warning in case
      fopen() fails to access image file for some reason.
      This would help new users and also debugging
      complex apps which use imread()
      Signed-off-by: Nnickjackolson <metedurlu@gmail.com>
      79d4e865
  5. 07 9月, 2021 1 次提交
  6. 24 4月, 2021 1 次提交
  7. 10 2月, 2021 1 次提交
  8. 25 12月, 2020 1 次提交
  9. 23 12月, 2020 1 次提交
  10. 13 9月, 2020 1 次提交
  11. 27 3月, 2020 1 次提交
    • S
      Merge pull request #16494 from StefanBruens:jpeg2000_openjpeg_port · 8d784000
      StefanBruens 提交于
      Jpeg2000 OpenJPEG port
      
      * OpenJPEG based JPEG2000 decoder implementation
      
      Currently, the following input color spaces and depth conversions are
      supported:
      
      - 8 bit -> 8 bit
      - 16 bit -> 16 bit (IMREAD_UNCHANGED, IMREAD_ANYDEPTH)
      
      - RGB(a) -> BGR
      - RGBA -> BGRA (IMREAD_UNCHANGED)
      - Y(a) -> Y(a) (IMREAD_ANYCOLOR, IMREAD_GRAY, IMREAD_UNCHANGED))
      - YCC -> Y (IMREAD_GRAY)
      
      * Check for OpenJPEG availability
      
      This enables OpenJPEG based JPEG2000 imread support by default, which
      can be disabled by -DWITH_OPENJPEG=OFF. In case OpenJPEG is enabled
      and found, any checks for Jasper are skipped.
      
      * Implement precision downscaling for precision > 8 without IMREAD_UNCHANGED
      
      With IMREAD_UNCHANGED, values are kept from the input image, without it
      components are downscaled to CV_8U range.
      
      * Enable Jpeg2K tests when OpenJPEG is available
      
      * Add support for some more color conversions
      
      Support IMREAD_GRAY when input color space is RGB or unspecified.
      Support YUV input color space for BGR output.
      
      * fix: problems with unmanaged memory
      
      * fix: CMake warning - HAVE_OPENJPEG is undefined
      
      Removed trailing whitespaces
      
      * fix: CMake find_package OpenJPEG add minimal version
      
      * Basic JPEG2K encoder
      
      Images with depth CV_8U and CV_16U are supported, with 1 to 4 channels.
      
      * feature: Improved code for OpenJPEG2000 encoder/decoder
      
       - Removed code duplication
       - Added error handlers
       - Extracted functions
      
      * feature: Update conversion openjpeg array from/to Mat
      
      * feature: Extend ChannelsIterator to fulfill RandomAccessIterator named requirements
      
       - Removed channels split in copyFromMatImpl. With ChannelsIterator no allocations are performed.
       - Split whole loop into 2 parts in copyToMat -> where std::copy and std::transforms are called.
      
      * fix: Applied review comments.
      
       - Changed `nullptr` in CV_LOG* functions to `NULL`
       - Added `falls through` comment in decoder color space `switch`
       - Added warning about unsupported parameters for the encoder
      
      * feature: Added decode from in-memory buffers.
      Co-authored-by: NVadim Levin <vadim.levin@xperience.ai>
      8d784000
  12. 06 2月, 2020 1 次提交
  13. 20 1月, 2020 1 次提交
    • G
      Merge pull request #16309 from ganesh-k13:bugfix/imdecode-resize · 80ade96c
      Ganesh Kathiresan 提交于
      * Added flag handlers for imread and imdecode | Issue 16203
      
      Undo imread change
      
      Added Imread resize tests
      
      Added imdecode flags check
      
      Added imdecode tests for resize
      
      Removed trailing whitespace
      
      Removed IMREAD_IGNORE_ORIENTATION check
      
      Added else condition
      
      Removed IMREAD_IGNORE_ORIENTATION check in decode
      
      Added HAVE_JPEG guards
      
      Added static_cast for Win32
      
      Added resize for non jpegs
      
      Added tests for non jpeg resize case
      
      Fixed resize value in assert
      
      Changed tests to Value-Parameterized Tests
      
      Changed tests to Value-Parameterized Tests | handled >> in cpp
      
      Changed tests to Value-Parameterized Tests | removed trailing whitespace
      
      * imgcodecs: update test
      80ade96c
  14. 29 9月, 2019 1 次提交
  15. 22 9月, 2019 1 次提交
  16. 06 7月, 2019 1 次提交
  17. 09 12月, 2018 1 次提交
  18. 09 11月, 2018 2 次提交
  19. 06 9月, 2018 1 次提交
  20. 31 8月, 2018 2 次提交
    • A
      imgcodecs: add null pointer check · 0d4fd20a
      Alexander Alekhin 提交于
      0d4fd20a
    • A
      imgcodecs(webp): multiple fixes · 0515f930
      Alexander Alekhin 提交于
      - don't reallocate passed 'img' (test fixed - must use IMREAD_UNCHANGED / IMREAD_ANYCOLOR)
      - avoid memory DDOS
      - avoid reading of whole file during header processing
      - avoid data access after allocated buffer during header processing (missing checks)
      - use WebPFree() to free allocated buffers (libwebp >= 0.5.0)
      - drop unused & undefined `.close()` method
      - added checks for channels >= 5 in encoder
      0515f930
  21. 13 8月, 2018 1 次提交
    • P
      Merge pull request #12192 from pasbi:pfm · 9f5f64e1
      pasbi 提交于
      * created new decoder and encoder for PFM
      
      pfm file format stores binary RGB or grayscale float images.
      
      * added test for pfm codec
      
      * replaced large with short licence header
      
      * little/big-endian-check is now compile time
      
      * fixed width/height confusion, improved big/little endian recognition, fixed scaling issue and Improved signature check
      
      * adapted tests to handle float images well
      
      * removed data-dependency: lena.pfm
      
      the lena image is now loaded is pam and converted to pfm.
      
      * fixed bug in endianess detection macro
      
      * Added endianess detection for android and win
      
      * removed fancy endianess detection
      
      endianess detection will be implemented in cmake scripts soonish.
      
      * fixed minor warnings
      
      * fixed stupid elif defined bug
      
      * silenced some implicit cast warnings
      
      * replaced std::to_string with std::stringstream solution
      
      std::to_string variant did not build on android.
      
      * replaced new endianess macros with existing ones
      
      * improved readability
      9f5f64e1
  22. 22 5月, 2018 2 次提交
  23. 24 4月, 2018 1 次提交
  24. 29 3月, 2018 1 次提交
  25. 28 3月, 2018 1 次提交
  26. 21 2月, 2018 1 次提交
  27. 28 12月, 2017 1 次提交
  28. 13 12月, 2017 1 次提交
  29. 11 12月, 2017 1 次提交
  30. 25 9月, 2017 1 次提交
  31. 16 8月, 2017 1 次提交
  32. 01 8月, 2017 1 次提交
  33. 26 6月, 2017 1 次提交
  34. 25 4月, 2017 1 次提交
  35. 15 4月, 2017 1 次提交
    • B
      Merge pull request #8492 from brian-armstrong-discord:exif_inmemory · 9e054d38
      brian-armstrong-discord 提交于
      autorotate in-memory jpegs (#8492)
      
      * autorotate in-memory jpegs
      
      * correct indentation (4 spaces)
      
      * imgcodecs: don't apply EXIF rotation for unloaded images
      
      * videoio: don't try to rotate MJPEG stream
      
      * imgcodecs: ByteStreamBuffer::seekoff support all seek "dir"
      
      * imgcodecs: fix condition: "off == egptr() - eback()" is valid offset
      9e054d38
  36. 10 11月, 2016 2 次提交