1 | initial version |
The problem is that m_DarkChannelImage
is of type CV_64F
, because you assign to it one of the planes
, which holds the results of splitting the input_image
, which is CV_64FC3
.
If you want to access its pixels, you have to call at<double>()
, whereas you call at<uchar>()
, which is only suitable for CV_8UC
type.