Hi Bob
There is no "remapping matrix" in PanoTools. It uses a sequence of
functions that perform parts of the overall remapping. Those
functions all have the same argument list format and are called
automatically in the required order once placed in the "function
stack", i.e. a list of function pointers and pointers to optional
arguments. As Jim points out, these functions are defined in filter.c
and math.c; adjust.c has code that sets up stacks. Each invocation of
a stack maps one output pixel to an interpolation point in an input
image.
Each function maps a 2D coordinate pair into another one. There are
functions for mapping each way between most pairs of the many
projection types known to libpano, and one special one that performs
the alignment operation by mapping equirectangular to equirectangular
through a 3D rotation. Also a few utility mappings like shear and
radial stretch according to a polynomial. The sequence of functions
for a typical stitching operation is something like this: 1)
destination projection to equirectangular; 2) rotate in 3D; 3)
equirectangular to ideal lens projection (for example rectilinear); 4)
radial polynomial to model lens distortion. The coordinates are
scaled "as radians" thoughout; conversion from/to pixel coordinates
happens outside the stack.
If by "remapping matrix" you mean a table of source positions
corresponding to given destination pixels, the optional "fast
remapping" module generates one of those for a grid with a spacing of
several destination pixels each way. I think that code is in
resample.c; at least the code that uses the table is there. You could
probably export the table to a file for transfer to your app.
Hope this helps, Tom