Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solution: change everything to CV_32F first and after cv::threshold convert the result back to CV_8U. Why this works instead of CV_8U is not completely clear to me, maybe addWeighted doesn't give the correct output due to the uchar-type.