Open 5had3z opened 2 weeks ago
That is some crazy scam link genration spam. GH needs to get it together lmao.
It is our intention to provide 3ch by default (even if the input is 1-channel), unless specified to decode to grayscale. However, we should probably decode the original number of channels when UNCHANGED is selected. Would that behaviour be OK for you?
Since this is a new library and version <1, would it be possible to change defaults to UNCHANGED (and unchanged to keep the same ch/bit depth) to minimize suprise? I don't think silent implicit conversion from one format to another should be desired behaviour.
Version
0.3.0.5
Describe the bug.
When reading an 1ch 8bit image, nvimgcodec returns a 3ch 8bit image. OpenCV has the same behaviour when not specifying a format. When specifying flagging IMREAD_UNCHANGED it reads as 1ch. PIL reads correctly by default.
Minimum reproducible example
Environment details
Relevant log output
Other/Misc.
No response
Check for duplicates