opencv calculate matrix rank
===

I am trying to find rank of a matrix.  In matlab this is fairly straight-forward but I am using visual studio 2008 (c++).  I recently installed openCV and it works for most of my matrix arithmetic so far except I can't figure out how to use openCV to get rank of a matrix.  In my research online I found that apparently cvSVD can give me rank
http://www.emgu.com/wiki/files/1.3.0.0/html/55d6f4d2-223d-8c55-2770-2b6a9c6eefa2.htm

But I have no idea how cvSVD will return this particular property.  Any ideas on getting matrix rank from openCV???

Thanks.