Save matrix of double values in OpenCV

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-05-23T07:59:10Z Indexed on 2010/05/23 8:00 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

I have an OpenCV matrix of double (CV_32F) values. I'd like to save it to the disk. I know, I could convert it to an 1-Channel 8-bit IplImage and save it. But that way, I loose precision. Is there a way to save it directly in the 32-bit format, without having to convert it first? It also would be nice, if the resulting file would have an image format, so I can view the result as an image.

© Stack Overflow or respective owner

Related posts about matrix

Related posts about opencv