Changeset 3801 for trunk/pois/src/poisConvolveImage.c
- Timestamp:
- Apr 29, 2005, 8:34:13 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/pois/src/poisConvolveImage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pois/src/poisConvolveImage.c
r3792 r3801 21 21 int nx = input->numCols; // The size of the image in x 22 22 int ny = input->numRows; // The size of the image in y 23 float nxHalf = 0.5 * (float)nx; // Half the size of the image24 float nyHalf = 0.5 * (float)ny; // Half the size of the image25 23 int xKernel = config->xKernel; // The half-size of the kernel in x 26 24 int yKernel = config->yKernel; // The half-size of the kernel in y 27 float background = solution->data.F64[solution->n -1]; // The difference in background25 float background = solution->data.F64[solution->n - 1]; // The difference in background 28 26 int numParams = kernelParams->n; // Number of kernel parameters 29 27 … … 45 43 double conv = background; // Convolved value 46 44 45 #if 0 47 46 float imageX = (x - nxHalf) / nxHalf; // Normalised position in x 48 47 float imageY = (y - nyHalf) / nyHalf; // Normalised position in y 48 #endif 49 49 50 50 // Iterate over the kernel basis functions … … 53 53 int u = kernel->u; 54 54 int v = kernel->v; 55 56 #if 0 55 57 int xOrder = kernel->xOrder; 56 58 int yOrder = kernel->yOrder; 57 58 #if 059 59 // Evaluate the polynomial 60 60 poly->mask[xOrder][yOrder] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
