It does not seem useful to capture mixed horizontal/vertical images for a stitched panorama, at least if the final stitched image is meant to be rectangular. That said, why not rotate the images to a common orientation before submitting them to the stitching program?