IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 3:28:00 PM (20 years ago)
Author:
eugene
Message:

added local linear map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarp.h

    r10954 r10957  
    1313# define PSWARP_RECIPE "PSWARP" // Name of the recipe to use
    1414
     15// a single pswarpMap converts coordinates from one image to a second image
     16// the linear model is only valid over a limited range of pixels
    1517typedef struct {
    16   double Xo, Xx, Xy;
    17   double Yo, Yx, Yy;
     18    double Xo, Xx, Xy;
     19    double Yo, Yx, Yy;
     20    int xo;
     21    int yo;
    1822} pswarpMap;
    1923
     24// the pswarpMapGrid carries a collection of pswarpMag structures representing the
     25// local value of the pswarpMap at different locations in the image.
    2026typedef struct {
    21   pswarpMap **grid;
    22   int Nx, Ny;
    23   int nXpix, nYpix;
     27    pswarpMap ***maps;
     28    int nXpts, nYpts;                   // number of x,y samples in the grid
     29    int nXpix, nYpix;                   // x,y spacing in src image pixels of grid samples
     30    int xMin,  yMin;                    // coordinate of first grid sample
    2431} pswarpMapGrid;
    2532
     
    3138void pswarpCleanup (pmConfig *config);
    3239bool pswarpTransformReadout (pmReadout *output, pmReadout *input, pmConfig *config);
     40bool pswarpTransformReadout_Opt (pmReadout *output, pmReadout *input, pmConfig *config);
    3341
     42bool pswarpMatchRange (int *minX, int *minY, int *maxX, int *maxY, pmReadout *dest, pmReadout *src);
     43
     44pswarpMap *pswarpMapAlloc ();
     45pswarpMapGrid *pswarpMapGridAlloc (int Nx, int Ny);
     46
     47pswarpMapGrid *pswarpMapGridFromImage (pmReadout *dest, pmReadout *src, int nXpix, int nYpix);
     48bool pswarpMapGridSetGrid (pswarpMapGrid *grid, int ix, int iy, int *gridX, int *gridY);
     49bool pswarpMapGridNextGrid (pswarpMapGrid *grid, int gridX, int gridY, int *nextX, int *nextY);
     50double pswarpMapGridMaxError (pswarpMapGrid *grid);
     51bool pswarpMapApply (double *outX, double *outY, pswarpMap *map, double inX, double inY);
     52bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy);
Note: See TracChangeset for help on using the changeset viewer.