Amazing… I understood now, the data also has negative numbers, and in that case. could not be saved as a PNG… that only supports CV_16Unsigned according the documentation that you cited.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| 1D array to 16bits greyscale mat | 3 | 1274 | June 17, 2021 | |
| Saving Image format problem | 7 | 5221 | June 23, 2021 | |
| How to save Mat as a 1-bit depth TIF file | 1 | 34 | October 8, 2025 | |
| How to convert Image RAW10 format to cv::Mat | 6 | 1979 | August 16, 2022 | |
| How to read ffv1 16-bit video in Windows? | 4 | 1438 | February 6, 2021 |