Changeset 2916
- Timestamp:
- Jan 5, 2005, 1:43:58 PM (22 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
pmNonLinear.c (modified) (4 diffs)
-
pmReadoutCombine.c (modified) (2 diffs)
-
pmSubtractBias.c (modified) (4 diffs)
-
pmSubtractSky.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmNonLinear.c
r2915 r2916 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-01-05 23: 25:24$7 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-01-05 23:43:58 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 PS_PTR_CHECK_NULL(inputReadout, NULL); 36 36 PS_PTR_CHECK_NULL(inputReadout->image, NULL); 37 PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL); 37 38 PS_PTR_CHECK_NULL(input1DPoly, NULL); 38 39 … … 62 63 PS_PTR_CHECK_NULL(inputReadout,NULL); 63 64 PS_PTR_CHECK_NULL(inputReadout->image,NULL); 65 PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL); 64 66 PS_PTR_CHECK_NULL(inFlux,NULL); 65 67 psS32 tableSize = inFlux->n; … … 74 76 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%d, %d)\n", inFlux->n, outFlux->n); 75 77 } 78 PS_VECTOR_CHECK_TYPE(inFlux, PS_TYPE_F32, NULL); 79 PS_VECTOR_CHECK_TYPE(outFlux, PS_TYPE_F32, NULL); 76 80 77 81 psS32 i; -
trunk/psModules/src/pmReadoutCombine.c
r2915 r2916 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-01-05 23: 25:24$7 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-01-05 23:43:58 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 160 160 *(psS32 *) &(output->row0) = minInputRows; 161 161 } else { 162 PS_IMAGE_CHECK_TYPE(output, PS_TYPE_F32, NULL); 162 163 if (((output->col0 + output->numCols) < maxInputCols) || 163 164 ((output->row0 + output->numRows) < maxInputRows)) { -
trunk/psModules/src/pmSubtractBias.c
r2857 r2916 6 6 * @author George Gusciora, MHPCC 7 7 * 8 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $9 * @date $Date: 200 4-12-30 22:22:00$8 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-01-05 23:43:58 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 252 252 PS_READOUT_CHECK_EMPTY(in, NULL); 253 253 PS_READOUT_CHECK_TYPE(in, PS_TYPE_F32, NULL); 254 255 // 256 // If the overscans != NULL, then check the type of each image. 257 // 258 if (overscans != NULL) { 259 psListElem *tmpOverscan = (psListElem *) overscans->head; 260 while (NULL != tmpOverscan) { 261 psImage *myOverscanImage = (psImage *) tmpOverscan->data; 262 PS_IMAGE_CHECK_TYPE(myOverscanImage, PS_TYPE_F32, NULL); 263 tmpOverscan = tmpOverscan->next; 264 } 265 } 266 254 267 if ((overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)) { 255 268 psError(PS_ERR_UNKNOWN,true, "(overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE). Returning in image\n"); … … 301 314 } 302 315 316 317 318 303 319 if (overScanAxis == PM_OVERSCAN_NONE) { 304 320 if (fit != PM_FIT_NONE) { … … 322 338 // 323 339 // We subtract each overscan region from the image data. 340 // If we get here we know that overscans != NULL. 324 341 // 342 325 343 if (overScanAxis == PM_OVERSCAN_ALL) { 326 344 tmpOverscan = (psListElem *) overscans->head; 327 345 while (NULL != tmpOverscan) { 328 346 myOverscanImage = (psImage *) tmpOverscan->data; 347 348 PS_IMAGE_CHECK_TYPE(myOverscanImage, PS_TYPE_F32, NULL); 329 349 psStats *rc = psImageStats(myStats, myOverscanImage, NULL, 0xffffffff); 330 350 if (rc == NULL) { -
trunk/psModules/src/pmSubtractSky.c
r2857 r2916 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $9 * @date $Date: 200 4-12-30 22:22:00$8 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-01-05 23:43:58 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 414 414 415 415 XXX: use static vectors for myStats, and the binned image 416 417 XXX: The SDR is silent about types. PS_TYPE_F32 is implemented here. 416 418 *****************************************************************************/ 417 419 psReadout *pmSubtractSky(psReadout *in,
Note:
See TracChangeset
for help on using the changeset viewer.
