Changeset 7278 for trunk/psModules/src/detrend/pmFringeStats.c
- Timestamp:
- Jun 1, 2006, 2:55:23 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmFringeStats.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmFringeStats.c
r7126 r7278 3 3 * @author Eugene Magnier, IfA 4 4 * 5 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-0 5-17 00:55:35$5 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-06-02 00:55:23 $ 7 7 * 8 8 * Copyright 2004 IfA … … 61 61 bool pmFringeRegionsCreatePoints(pmFringeRegions *fringe, const psImage *image) 62 62 { 63 PS_ASSERT_PTR_NON_NULL(fringe, false); 64 PS_ASSERT_PTR_NON_NULL(image, false); 65 PS_ASSERT_IMAGE_NON_EMPTY(image, false); 63 66 64 67 double frnd; … … 106 109 pmFringeStats *pmFringeStatsAlloc(pmFringeRegions *regions) 107 110 { 111 PS_ASSERT_PTR_NON_NULL(regions, false); 112 108 113 pmFringeStats *stats = psAlloc(sizeof(pmFringeStats)); 109 114 (void)psMemSetDeallocator(stats, (psFreeFunc)fringeStatsFree); … … 120 125 pmFringeStats *pmFringeStatsMeasure(pmFringeRegions *fringe, pmReadout *readout, psMaskType maskVal) 121 126 { 127 PS_ASSERT_PTR_NON_NULL(fringe, NULL); 128 PS_ASSERT_PTR_NON_NULL(readout, NULL); 129 PS_ASSERT_PTR_NON_NULL(readout->image, NULL); 130 PS_ASSERT_IMAGE_NON_EMPTY(readout->image, NULL); 131 122 132 if (!fringe->x || !fringe->y) { 123 133 // create the fringe vectors for this image … … 364 374 unsigned int nIter, float keepFrac) 365 375 { 376 PS_ASSERT_PTR_NON_NULL(science, NULL); 377 PS_ASSERT_PTR_NON_NULL(fringes, NULL); 378 PS_ASSERT_INT_POSITIVE(fringes->n, NULL); 379 PS_ASSERT_INT_POSITIVE(nIter, NULL); 380 366 381 pmFringeRegions *regions = science->regions; // The fringe regions 367 382 int numRegions = regions->nRequested; // Number of regions … … 439 454 unsigned int nIter, float keepFrac) 440 455 { 456 PS_ASSERT_PTR_NON_NULL(readout, NULL); 457 PS_ASSERT_PTR_NON_NULL(readout->image, NULL); 458 PS_ASSERT_IMAGE_NON_EMPTY(readout->image, NULL); 459 PS_ASSERT_PTR_NON_NULL(fringes, NULL); 460 PS_ASSERT_PTR_NON_NULL(fringeImages, NULL); 461 PS_ASSERT_PTR_NON_NULL(fringeStats, NULL); 462 PS_ASSERT_INT_EQUAL(fringeImages->n, fringeStats->n, NULL); 463 PS_ASSERT_INT_POSITIVE(nIter, NULL); 464 441 465 // measure the fringe stats for the science frame and solve for the scales 442 466 pmFringeStats *scienceStats = pmFringeStatsMeasure(fringes, readout, maskVal);
Note:
See TracChangeset
for help on using the changeset viewer.
