First time here? Check out the FAQ!
try this: normalize(src1,dst1,0,255,NORM_MINMAX,CV_8UC1); normalize(src2,dst2,0,255,NORM_MINMAX,CV_8UC1); dst1.convert