I have three transforms: $C$, $T$, and $P$. Each of these transforms consists of 3D rotations and translations. I know $T$ and $P$, and I would like to solve for $C$. They are related by $T = C^{-1} P C$. Is there a good way to solve this? Is this even guaranteed to have a solution?
The only way I can think of solving it is to express the equation in the element-wise form, and solve the $16$ equations for the various components of $C$. Besides being painful, this would be error-prone, and I'm hoping that there is a cleaner solution.
Assuming all three are rigid transformations:
If such a $C$ exists, then $T$ and $P$ are said to be orthogonally similar. In fact, given that $T$ and $P$ are rigid transformations, we know that the following are equivalent:
If $T$ and $P$ are similar, we can find a similarity through the (real) spectral decompositions:
Suppose $C_1,C_2$ are unitary matrices (rigid transformations) such that $$ C_1TC_1^{-1} = R\\ C_2 P C_2^{-1} = R $$ where $R$ is the corresponding rotation around the $z$-axis. We then have $$ T = C_1^{-1} C_2 R C_2^{-1} C_1 = (C_2^{-1}C_1)^{-1} R (C_2^{-1}C_1) $$