Greetings,
ASP is primarily concerned with aligning of stereo DEM data.
What can work for you is to run bundle adjustment on the images that you want to mosaic, and those should be the raw .cub images, before cam2map. After that, they would be consistent with each other. But they would need to be projected onto a DEM, which can
be done with our tool, named mapproject, invoked with --bundle-adjust-prefix, where the prefix is the output bundle adjustment prefix from the previous step.
Regretfully this will make things better but won't fix them fully unless your DEM is consistent (well-aligned) with the images (note that cam2map uses a DEM too, but it is implicit).
The best you could do would be to create a n ASP stereo DEM from some of your HiRiSE images after bundle adjustment, and maproject onto that, using as before the --bundle-adjust-prefix option.
If you want to project onto a different DEM, the currently bundle-adjusted cameras would need to be aligned to it. That can be done by using pc_align tool, with your desired DEM as the reference, the ASP stereo DEM from earlier as the source, and then that
alignment would need to be applied to the cameras too, by invoking yet again bundle adjustment, with 0 iterations, with the --initial-transform option specifying the output transform of pc_align (for example, output_prefix/run-transform.txt) and the bundle
adjust option --input-adjustments-prefix referring to the previous bundle adjustment prefix. This would move the cameras from being aligned to the ASP DEM to being aligned to your own DEM.
This is a bit technical, though note that I described all steps. The basic idea is that if you don't want shifts or seams after mapprojection, all images and the DEM to project to must be in perfect agreement among themselves, and what I provided above is a
recipe for achieving that, if perhaps a complex one.
Oleg