You really think this equation give the error? It is impossible. The equation result is only one...
But when the triangle looks like line. It is give me the NAN
Please, I want to check it. I don't understand. I work with +z direction. Its give me a real result of any rotation and position.
Checking my equation a serios limitations. Top angles should not be too small, Double type of variable give me the fault.
By the way. I got another equation.
For the triangle in the space ABC and point S (center of perspective projection) true equality:
3*SM = SA*CosMSA + SB*CosMSB + SC*CosMSC;
Where M the centroid of ABC
You can check it.
My pinhole at the origin, but foward direction (perpendicular sensor direction) is z+. I don't know how to rotate basis.
But you right about infinite triangle variations if the ray from pinhole lies on a triangle plane. And triangle projection looks like the line.
this is just an exception))
But. Pinhole cameras don't exist in real world. I must get all camera parameters from all cosines from this equation. And it is very hard. Because I don't know equation for angle relations in a tetrahedron. I got little one, but it useless for me.
Nope. I got it by one frame. Video is a just presentation. Just look to equation what i posted early. Factors is the multiplied Cosines of some angles. Sorry for my English.
Sorry. I don't know what you try to talk me about, but...
For the triangle in a 3d space. ABC. And the centroid M.
The point S is A center of perspective projection. We are know AB,BC,AC lenght. And for the ideal pinhole camera...
I got equation
SM^2 = (AB^2+BC^2+AC^2)*Kabc/(27*Kabm - 9*Kabc +...
I solve linear equation for getting rotation and position of triangle without rotation and translation matrix. And try it. Just need a AB, BC, AC lenght.
Somebody do this before?This is demonstration with camera canon eos 600d. But I don't solve lens distortion yet.