changed correspodnence matrices to CV_8UC1