Ask Your Question
0

format () function for converting Mat string output format missing gone?

asked 2014-11-21 07:08:13 -0500

Ričards gravatar image

Hello.

I need to output Mat data to csv file. I remember doing it with function format(matrix, "csv"). That formats matrix data to string using csv format. But now using OpenCV 3.0 alfa build I get error for this function in Visual Studio, saying something about wrong parameters. Is this functionality gone from OpenCV?

Thank you :)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-07-07 07:22:58 -0500

psilar gravatar image

The function prototype has changed in OpenCV. The functionality of

format(matrix, "csv")

is achieved with

cv::format(matrix, cv::Formatter::FMT_CSV)

Options available are FMT_DEFAULT, FMT_MATLAB, FMT_CSV, FMT_PYTHON, FMT_NUMPY, and FMT_C.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-11-21 07:08:13 -0500

Seen: 489 times

Last updated: Nov 21 '14