mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
Force empty output type where it's defined in API #27972 The PR replaces: - https://github.com/opencv/opencv/pull/27936 - https://github.com/opencv/opencv/pull/21059 Empty matrix has undefined type, so user code should not relay on the output type, if it's empty. The PR introduces some exceptions: - copyTo documentation defines, that the method re-create output buffer and set it's type. - convertTo has output type as parameter and output type is defined and expected.