Changeset 7621 for trunk/ppImage/src/ppImageMosaic.c
- Timestamp:
- Jun 21, 2006, 12:51:48 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageMosaic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageMosaic.c
r7592 r7621 1 1 # include "ppImage.h" 2 2 3 bool ppImageMosaicChip (pmC hip *chip, pmConfig *config, const pmFPAview *view) {3 bool ppImageMosaicChip (pmConfig *config, const pmFPAview *view, char *outFile, char *inFile) { 4 4 5 5 bool status; 6 6 7 pmFPAfile * outByChip = psMetadataLookupPtr (&status, config->files, "PPIMAGE.OUTPUT.CHIP");7 pmFPAfile *in = psMetadataLookupPtr (&status, config->files, inFile); 8 8 if (!status) { 9 9 psErrorStackPrint(stderr, "Can't find required I/O file!\n"); … … 11 11 } 12 12 13 pmFPAAddSourceFromView (outByChip->fpa, view, outByChip->format); 14 pmChip *outChip = pmFPAviewThisChip (view, outByChip->fpa); 15 pmChipMosaic (outChip, chip); 13 pmFPAfile *out = psMetadataLookupPtr (&status, config->files, outFile); 14 if (!status) { 15 psErrorStackPrint(stderr, "Can't find required I/O file!\n"); 16 exit(EXIT_FAILURE); 17 } 18 19 pmFPAAddSourceFromView (out->fpa, view, out->format); 20 pmChip *outChip = pmFPAviewThisChip (view, out->fpa); 21 pmChip *inChip = pmFPAviewThisChip (view, in->fpa); 22 23 pmChipMosaic (outChip, inChip); 16 24 17 25 return true; 18 26 } 27 28 bool ppImageMosaicFPA (pmConfig *config, char *outFile, char *inFile) { 29 30 bool status; 31 32 pmFPAfile *in = psMetadataLookupPtr (&status, config->files, inFile); 33 if (!status) { 34 psErrorStackPrint(stderr, "Can't find required I/O file!\n"); 35 exit(EXIT_FAILURE); 36 } 37 38 pmFPAfile *out = psMetadataLookupPtr (&status, config->files, outFile); 39 if (!status) { 40 psErrorStackPrint(stderr, "Can't find required I/O file!\n"); 41 exit(EXIT_FAILURE); 42 } 43 44 pmFPAview *view = pmFPAviewAlloc (0); 45 pmFPAAddSourceFromView (out->fpa, view, out->format); 46 pmFPAMosaic (out->fpa, in->fpa); 47 48 psFree (view); 49 return true; 50 }
Note:
See TracChangeset
for help on using the changeset viewer.
