- Timestamp:
- Jan 31, 2010, 5:00:42 PM (16 years ago)
- Location:
- branches/eam_branches/psModules.stack.20100120
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imcombine/pmStackReject.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psModules.stack.20100120
- Property svn:mergeinfo changed
/branches/eam_branches/20091201/psModules (added) merged: 26686-26687,26693,26702-26703,26731-26735,26737,26739,26741-26743
- Property svn:mergeinfo changed
-
branches/eam_branches/psModules.stack.20100120/src/imcombine/pmStackReject.c
r25468 r26747 35 35 { 36 36 int size = kernels->size; // Half-size of convolution kernel 37 psImage *polyValues = p_pmSubtractionPolynomialFromCoords(NULL, kernels, numCols, numRows,38 xMin + size + 1,yMin + size + 1); // Polynomial37 psImage *polyValues = p_pmSubtractionPolynomialFromCoords(NULL, kernels, xMin + size + 1, 38 yMin + size + 1); // Polynomial 39 39 int box = p_pmSubtractionBadRadius(NULL, kernels, polyValues, false, poorFrac); // Radius of bad box 40 40 psTrace("psModules.imcombine", 10, "Growing by %d", box); … … 150 150 pmReadout *inRO = pmReadoutAlloc(NULL); // Readout with input image 151 151 inRO->image = image; 152 convRO->image = psImageAlloc(image->numCols, image->numRows, PS_TYPE_F32); 152 153 for (int i = 0; i < numRegions; i++) { 153 154 psRegion *region = subRegions->data[i]; // Region of interest … … 165 166 166 167 // Image of the kernel at the centre of the region 167 float xNorm = (region->x0 + 0.5 * (region->x1 - region->x0) - kernels->numCols/2.0) /168 (float)kernels->numCols;169 float yNorm = (region->y0 + 0.5 * (region->y1 - region->y0) - kernels->numRows/2.0) /170 (float)kernels->numRows;168 float xNorm, yNorm; // Normalised coordinates 169 p_pmSubtractionPolynomialNormCoords(&xNorm, &yNorm, 0.5 * (region->x1 - region->x0), 170 0.5 * (region->y1 - region->y0), 171 kernels->xMin, kernels->xMax, kernels->yMin, kernels->yMax); 171 172 psImage *kernel = pmSubtractionKernelImage(kernels, xNorm, yNorm, false); 172 173 if (!kernel) {
Note:
See TracChangeset
for help on using the changeset viewer.
