Changeset 8669 for trunk/psModules/src/imcombine
- Timestamp:
- Aug 29, 2006, 11:39:44 AM (20 years ago)
- Location:
- trunk/psModules/src/imcombine
- Files:
-
- 3 edited
-
pmImageCombine.c (modified) (4 diffs)
-
pmImageSubtract.c (modified) (9 diffs)
-
pmReadoutCombine.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmImageCombine.c
r8246 r8669 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-08- 09 02:37:07$10 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-29 21:39:44 $ 12 12 * 13 13 * XXX: pmRejectPixels() has a known bug with the pmImageTransform() call. … … 50 50 PS_ASSERT_PTR_NON_NULL(images, combine); 51 51 psU32 numImages = images->n; 52 psTrace("psModules.imcombine", 3, "Calling pmCombineImages(% d)\n", images->n);52 psTrace("psModules.imcombine", 3, "Calling pmCombineImages(%ld)\n", images->n); 53 53 54 54 if (errors != NULL) { 55 55 if (images->n != errors->n) { 56 psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (% d != %d)\n",56 psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (%ld != %ld)\n", 57 57 images->n, errors->n); 58 58 return(combine); … … 61 61 if (masks != NULL) { 62 62 if (images->n != masks->n) { 63 psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (% d != %d)\n",63 psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (%ld != %ld)\n", 64 64 images->n, masks->n); 65 65 return(combine); … … 297 297 psFree(qpPtr); 298 298 299 psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(% d)\n", images->n);299 psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(%ld)\n", images->n); 300 300 return(combine); 301 301 } -
trunk/psModules/src/imcombine/pmImageSubtract.c
r8246 r8669 7 7 * @author GLG, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-08- 09 02:37:07$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-29 21:39:44 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 191 191 PS_ASSERT_VECTOR_NON_NULL(orders, NULL); 192 192 psTrace("psModules.imcombine", 3, 193 "Calling pmSubtractionKernelsAllocISIS(% d, %d, %d, %d)\n",193 "Calling pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n", 194 194 sigmas->n, orders->n, size, spatialOrder); 195 195 PS_ASSERT_INT_POSITIVE(size, NULL); … … 307 307 308 308 psTrace("psModules.imcombine", 3, 309 "Exiting pmSubtractionKernelsAllocISIS(% d, %d, %d, %d)\n",309 "Exiting pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n", 310 310 sigmas->n, orders->n, size, spatialOrder); 311 311 return(tmp); … … 679 679 } 680 680 psS32 nBF = kernels->u->n; 681 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);681 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL); 682 682 683 683 psS32 numCols = input->numCols; … … 826 826 } else { 827 827 PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, false); 828 PS_ASSERT_VECTOR_SIZE(stampVector, numSolveParams, false);828 PS_ASSERT_VECTOR_SIZE(stampVector, (long)numSolveParams, false); 829 829 } 830 830 psVectorInit(stampVector, 0.0); … … 1038 1038 if (solution != NULL) { 1039 1039 PS_ASSERT_VECTOR_TYPE(solution, PS_TYPE_F64, NULL); 1040 PS_ASSERT_VECTOR_SIZE(solution, size, NULL);1040 PS_ASSERT_VECTOR_SIZE(solution, (long)size, NULL); 1041 1041 } else { 1042 1042 solution = psVectorAlloc(size, PS_TYPE_F64); … … 1070 1070 psVector *stampVector = stamp->vector; 1071 1071 PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, NULL); 1072 PS_ASSERT_VECTOR_SIZE(stampVector, size, NULL);1072 PS_ASSERT_VECTOR_SIZE(stampVector, (long)size, NULL); 1073 1073 PS_ASSERT_IMAGE_TYPE(stampMatrix, PS_TYPE_F64, NULL); 1074 1074 PS_ASSERT_IMAGE_SIZE(stampMatrix, size, size, NULL); … … 1177 1177 } 1178 1178 psS32 nBF = kernels->u->n; 1179 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);1179 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL); 1180 1180 1181 1181 psS32 kernelSize = kernels->size; … … 1269 1269 1270 1270 psS32 nBF = kernels->u->n; 1271 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, false);1271 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, false); 1272 1272 1273 1273 psVector *deviations = CalculateDeviations(NULL, -
trunk/psModules/src/imcombine/pmReadoutCombine.c
r8246 r8669 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-08- 09 02:37:07$7 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-29 21:39:44 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 136 136 137 137 if (!readout || !readout->image) { 138 psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout % d is NULL or has NULL image.\n", i);138 psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout %ld is NULL or has NULL image.\n", i); 139 139 return false; 140 140 } … … 151 151 if (readout->weight) { 152 152 if (valid && !haveWeights) { 153 psLogMsg(__func__, PS_LOG_WARN, "Readout % d has a weight map, but others don't --- "153 psLogMsg(__func__, PS_LOG_WARN, "Readout %ld has a weight map, but others don't --- " 154 154 "weights ignored.\n", i); 155 155 } else { … … 157 157 } 158 158 } else if (haveWeights) { 159 psLogMsg(__func__, PS_LOG_WARN, "Readout % d doesn't have a weight map, but others do --- "159 psLogMsg(__func__, PS_LOG_WARN, "Readout %ld doesn't have a weight map, but others do --- " 160 160 "weights ignored.\n", i); 161 161 haveWeights = false; … … 168 168 minInputCols = PS_MIN(minInputCols, readout->col0); 169 169 maxInputCols = PS_MAX(maxInputCols, readout->col0 + readout->image->numCols); 170 psTrace("psModules.imcombine", 7, "Readout % d: offset %d,%d; size %dx%d\n", i,170 psTrace("psModules.imcombine", 7, "Readout %ld: offset %d,%d; size %dx%d\n", i, 171 171 readout->col0, readout->row0, readout->image->numCols, readout->image->numRows); 172 172 }
Note:
See TracChangeset
for help on using the changeset viewer.
