Changeset 10957 for trunk/pswarp/src/pswarp.h
- Timestamp:
- Jan 7, 2007, 3:28:00 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarp.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarp.h
r10954 r10957 13 13 # define PSWARP_RECIPE "PSWARP" // Name of the recipe to use 14 14 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 15 17 typedef 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; 18 22 } pswarpMap; 19 23 24 // the pswarpMapGrid carries a collection of pswarpMag structures representing the 25 // local value of the pswarpMap at different locations in the image. 20 26 typedef 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 24 31 } pswarpMapGrid; 25 32 … … 31 38 void pswarpCleanup (pmConfig *config); 32 39 bool pswarpTransformReadout (pmReadout *output, pmReadout *input, pmConfig *config); 40 bool pswarpTransformReadout_Opt (pmReadout *output, pmReadout *input, pmConfig *config); 33 41 42 bool pswarpMatchRange (int *minX, int *minY, int *maxX, int *maxY, pmReadout *dest, pmReadout *src); 43 44 pswarpMap *pswarpMapAlloc (); 45 pswarpMapGrid *pswarpMapGridAlloc (int Nx, int Ny); 46 47 pswarpMapGrid *pswarpMapGridFromImage (pmReadout *dest, pmReadout *src, int nXpix, int nYpix); 48 bool pswarpMapGridSetGrid (pswarpMapGrid *grid, int ix, int iy, int *gridX, int *gridY); 49 bool pswarpMapGridNextGrid (pswarpMapGrid *grid, int gridX, int gridY, int *nextX, int *nextY); 50 double pswarpMapGridMaxError (pswarpMapGrid *grid); 51 bool pswarpMapApply (double *outX, double *outY, pswarpMap *map, double inX, double inY); 52 bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy);
Note:
See TracChangeset
for help on using the changeset viewer.
