This question already has an answer here:
I've taken about an hundered of pictures of a large painting with an iPhone at a distance of about 40cm. For each picture I moved the camera along the painting.
I was thinking to use hugin to build the final assembly. Unfortunately all the possible projections seems to apply only on a sphere not on a rectangle.
How can I automate the assembly of the painting I captured?