Hi guys

I want to using Panorama Tools for stitching multiple images. I know of Hugin but its a GUI. I want to write a program in c++ that uses Panorama Tools libraries (libpano13 etc) and can stitch the images . Any suggestions please?