I'd save the image to disk and reopen it from cv ;)
@^ I've tried the previous solution. It doesn't seem to working with me. Although I'm getting some image, it looks like some bar code information kind of image. I guess there are some mismatch of parameters.