First time here? Check out the FAQ!
I know it's an old thread, but I've came across your code via Google. For me it showed wrong colors in the resulting Mat