Windows live photo gallery - which you would probably already have on your computer does a good job automatically. i've used it for a few stitches (moon and nebs) and it came out well.
https://www.flickr.com/photos/80336656@N07/10977906944/
an irregular example - the program can pick overlapping parts!