error: (-215:Assertion failed) _src.dims() == 2 && _src.type() == CV_32FC3 in function 'cv::TonemapImpl::process'
时间: 2023-11-05 15:31:34 浏览: 93
This error message indicates that an assertion failed because the input image or matrix does not have two dimensions.
In OpenCV, most functions that operate on images or matrices expect them to have two dimensions, which typically represent the height and width of the image or matrix. If the input has a different number of dimensions, this assertion will fail and the program will terminate with this error message.
To fix this error, make sure that the input image or matrix has two dimensions by checking its shape or size. If necessary, reshape or resize the input to have two dimensions before passing it to the function.