In my work flow I take an
equirectangular, make it into a cube to edit the floor and sometimes the sky then use it as is in a Virtural tour. I now have a project where I to put the cubes back into an equirectangular image.
I know that Bruno Postle has cubic2erect, which sounds like it does what I want. I have never gotten along with pearl though so I am not able to use it as it. Instead I have done the same thing near as I can tell in hugin. I loaded my 6 images, set them at the correct locations and then checked the preview, it looks amazing. I think perfect this is simple. Then I go to stitch it and then I see, it is not so simple as it messes up.
I have stiched a few times, it always claims to have worked. The results are always a bit wonky though. The pictures it warps to make the final pano look good. If I wanted to I could put them together with photoshop or the like. When enblend gets the images it messes them up. Where they come together it tries to blend them and it makes a mess. It seems like there should be a command line option that I could give enblend to not do that. Or maybe I am doing it all wrong and there is another better approach.
Bruno's script is here
http://cpansearch.perl.org/src/BPOSTLE/Panotools-Script-0.28/bin/cubic2erectI have attached my project file and two example images showing the problem. The only diffence between them is that one is 100 pixels wider which made for a very different blend line.