Changeset 28282 for trunk/ppBackground/src
- Timestamp:
- Jun 10, 2010, 7:28:08 AM (16 years ago)
- Location:
- trunk/ppBackground/src
- Files:
-
- 2 edited
-
ppBackgroundCamera.c (modified) (1 diff)
-
ppBackgroundRestore.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundCamera.c
r28280 r28282 68 68 output->save = true; 69 69 70 pmFPAfile *outMask = pmFPAfileDefineOutput(data->config, output->fpa, "PPBACKGROUND.OUTPUT.MASK"); 71 if (!outMask) { 72 psError(psErrorCodeLast(), false, "Unable to define output."); 73 return false; 74 } 75 outMask->save = true; 76 70 77 #if 0 71 78 // Now the camera has been determined, we can read the recipe -
trunk/ppBackground/src/ppBackgroundRestore.c
r28280 r28282 22 22 return false; 23 23 } 24 psImage *image = ro->image ;// Image to correct24 psImage *image = ro->image, *mask = ro->mask; // Image to correct 25 25 int numCols = image->numCols, numRows = image->numRows; // Size of image 26 26 … … 58 58 pmReadout *patternRO = pmFPAviewThisReadout(view, pattern->parent); // Readout with pattern 59 59 psImage *patternImage = patternRO->image; // Image with pattern 60 psImage *patternMask = patternRO->mask; // Mask for pattern 60 61 for (int y = 0; y < numRows; y++) { 61 62 for (int x = 0; x < numCols; x++) { 62 63 image->data.F32[y][x] += patternImage->data.F32[y][x]; 64 mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] |= patternMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x]; 63 65 } 64 66 }
Note:
See TracChangeset
for help on using the changeset viewer.
