In MATLAB, i read a color video , extract a certain frame and convert it to a gray scale image using the rgb2gray
function.But when I load the same video with OpenC
First, all color images in OpenCV are BGR and not RGB so maybe one of the problems could be that OpenCV is making the transformation wrong. You should use BGR2GRAY. And second, If I remember well in matlab yo should specify which are the ranges of values in your image. You have to put between 0 and 255 for a gray image.
I hope this can help you.