For Matlab: Have a look at the Quiver plot: http://www.mathworks.de/de/help/matlab/ref/quiver.html
For OpenCV: I don´t think there is a function you could use. You would have to write it yourself.
Question
I'm programming a fingerprint recognition system ..and I get the orientation field map but i want to visualise the result befor continuing the rest of the program.
Is there any source code with openCv to do this faster or should I write the code my self
what about Matlab can it visualise an orientation matrix
the result I want is to visualise the b image ( I have already calculate it)
Solution
For Matlab: Have a look at the Quiver plot: http://www.mathworks.de/de/help/matlab/ref/quiver.html
For OpenCV: I don´t think there is a function you could use. You would have to write it yourself.