1 | initial version |
"but this doesn't work."
is the WORST error description. What happens? Which error messages do you get? It is possible to pass a Matrix as you write it (assuming you have an "using namespace cv;" somewhere). Your declaration is however rather bad style, I'd suggest to change it to const&, so that your matrices won't be copied.