Ideally you should calibrate your camera. Without the calibration you will have noticeable errors in estimated object pose.
I have not enough experience to say how good is the matrix from this test code. Any way you need to do some corrections for your case, at least adjust the camera matrix for your resolution.
There is an OpenCV sample named select3dobj.cpp demonstrating calibration and pose estimation. Probably you'll find it useful.
/Andrey