3x3 homography / 4 corner points -> X, Y, Z axis rotation values

I am working on Surf now. I got 3x3 homography by comparing a reference image and a webcam image. Then got 4 corner points finally. Here is my question. how can I get X, Y, Z axis rotation values?

Thanks in advance.

I found a solution below.

double rotationX = atan2 (h[0] , h[1]) * 180 / PI;
double rotationY = atan2 (h[6] , h[7]) * 180 / PI;
double rotationZ = atan2(h[3], h[4])* 180 / PI;;