c++ - The values of int fmt in format() -


currently using opencv3, in opencv2, there way format matrix outputs. used in tutorial here.

the format function seems have changed format(mat, str) in opencv2 format(mat, int) opencv3. making call:

cout << "4x4: " << endl << format(fourbyfour, "python") << endl; 

yields following error:

error: invalid conversion ‘const char*’ ‘int’ [-fpermissive]       /usr/local/include/opencv2/core/operations.hpp:371:16: note: initializing argument 2 of ‘cv::ptr<cv::formatted>cv::format(cv::inputarray, int)ptr<formatted> format(inputarray mtx, int fmt)            

i can plug in ints random printing formats, assume in opencv3, int fmt meant sort of "cv_" macro, can't seem find in documentation, nor in operations.hpp.

would happen know proper values fmt?

just looked @ code on github, , seems constant looking cv::formatter::fmt_python. can see code here.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -