First time here? Check out the FAQ!
answered 2015-06-03 21:01:15 -0600
i found the solution here
use result.convertTo() to convert it from CV_16S to CV_8U than you can convert color to gray.
... Mat result8u,gray; result.convertTo(result8u,CV_8U); cvtColor(result8u,gray,COLOR_BGR2GRAY);