I am reading the Qbytearray using QTCp socket, and converting the array into the cvMat image. to display the image using imshow().but i am getting gray image. code is as fol