-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
imdecode does not reuse dst if size differs #8606
Copy link
Copy link
Open
Description
imdecode does allow users to reuse a pixel buffer by passing it as dst. Unfortunately, this only works if the size is actually the right size to be decoded. Otherwise, opencv allocates a new buffer. It seems this is not really within the intent for this argument. It would be really useful if users could make sure that their buffer can always be reused (even if it has to be wrapped in a new Mat structure)
Reactions are currently unavailable