However in the following case the method does not properly work and needs refinement. Let me be more specific:
An image of real galaxy
And here is an image of a numerical simulation
As you can see, there is a problem with the first image. More precisely, the entire galaxy is slightly titled to the right.
Is there a way to fit the numerical simulation image on top of the real galaxy? The green and red arms should be rotated, stretched, moved and whatever is necessary, so as to fit exactly to the arms of the real galaxy.
The output should be something similar like this