Changeset 7851
- Timestamp:
- Jul 7, 2006, 7:35:59 PM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAMosaic.c (modified) (2 diffs)
-
concepts/pmConceptsAverage.c (modified) (3 diffs)
-
concepts/pmConceptsAverage.h (modified) (1 diff)
-
imcombine/pmReadoutCombine.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r7849 r7851 995 995 // Set the concepts for the target cell 996 996 psList *sourceCells = psArrayToList(source->cells); // List of cells 997 pmConceptsAverageCells(targetCell, sourceCells, xBin, yBin, chipRegion, NULL); 997 pmConceptsAverageCells(targetCell, sourceCells, chipRegion, NULL); 998 { 999 psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0"); 1000 item->data.S32 = 0; 1001 item = psMetadataLookup(targetCell->concepts, "CELL.Y0"); 1002 item->data.S32 = 0; 1003 item = psMetadataLookup(targetCell->concepts, "CELL.XBIN"); 1004 item->data.S32 = xBin; 1005 item = psMetadataLookup(targetCell->concepts, "CELL.YBIN"); 1006 item->data.S32 = yBin; 1007 } 1008 998 1009 psFree(sourceCells); 999 1010 psFree(chipRegion); … … 1101 1112 } 1102 1113 } 1103 pmConceptsAverageCells(targetCell, sourceCells, xBin, yBin, fpaRegion, NULL); 1114 pmConceptsAverageCells(targetCell, sourceCells, fpaRegion, NULL); 1115 { 1116 psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0"); 1117 item->data.S32 = 0; 1118 item = psMetadataLookup(targetCell->concepts, "CELL.Y0"); 1119 item->data.S32 = 0; 1120 item = psMetadataLookup(targetCell->concepts, "CELL.XBIN"); 1121 item->data.S32 = xBin; 1122 item = psMetadataLookup(targetCell->concepts, "CELL.YBIN"); 1123 item->data.S32 = yBin; 1124 } 1104 1125 psFree(sourceCells); 1105 1126 psFree(fpaRegion); -
trunk/psModules/src/concepts/pmConceptsAverage.c
r7850 r7851 19 19 bool pmConceptsAverageCells(pmCell *target,// Target cell 20 20 psList *sources, // List of source cells 21 int xBin, int yBin, // Binning in x and y22 21 psRegion *trimsec, // The trim section 23 22 psRegion *biassec // The bias section … … 27 26 PS_ASSERT_PTR_NON_NULL(sources, false); 28 27 PS_ASSERT_INT_POSITIVE(sources->n, false); 29 PS_ASSERT_INT_NONNEGATIVE(xBin, false);30 PS_ASSERT_INT_NONNEGATIVE(yBin, false);31 28 32 29 bool success = true; // Result of setting everything … … 96 93 MD_UPDATE(target->concepts, "CELL.DARKTIME", F32, darktime); 97 94 MD_UPDATE(target->concepts, "CELL.TIMESYS", S32, timeSys); 98 MD_UPDATE(target->concepts, "CELL.X0", S32, 0);99 MD_UPDATE(target->concepts, "CELL.Y0", S32, 0);100 if (xBin > 0) {101 MD_UPDATE(target->concepts, "CELL.XBIN", S32, xBin);102 }103 if (yBin > 0) {104 MD_UPDATE(target->concepts, "CELL.YBIN", S32, yBin);105 }106 95 MD_UPDATE(target->concepts, "CELL.READDIR", S32, readdir); 107 96 -
trunk/psModules/src/concepts/pmConceptsAverage.h
r7849 r7851 8 8 bool pmConceptsAverageCells(pmCell *target,// Target cell 9 9 psList *sources, // List of source cells 10 int xBin, int yBin, // Binning in x and y11 10 psRegion *trimsec, // The trim section 12 11 psRegion *biassec // The bias section -
trunk/psModules/src/imcombine/pmReadoutCombine.c
r7849 r7851 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-07-08 05: 21:12$7 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-07-08 05:35:59 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 405 405 psListAdd(inputCells, PS_LIST_TAIL, readout->parent); 406 406 } 407 pmConceptsAverageCells(output->parent, inputCells, 0, 0,NULL, NULL);407 pmConceptsAverageCells(output->parent, inputCells, NULL, NULL); 408 408 psFree(inputCells); 409 409
Note:
See TracChangeset
for help on using the changeset viewer.
