# How can i compute SVD and and verify that the ratio of the first-to-last singular value is sane with OpenCV?

I want to verify that homography matrix will give good results and this question has answer for it and i don't know how to implement the answer. So how can i compute SVD and and verify that the ratio of the first-to-last singular value is sane with OpenCV?