Changeset 6117 for trunk/psphot/src/psphotTest.c
- Timestamp:
- Jan 20, 2006, 8:57:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotTest.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotTest.c
r5993 r6117 15 15 int main (int argc, char **argv) { 16 16 17 psMetadata *row;18 psArray *table;19 20 psMetadataItem *mdi;21 17 psRegion region = {0,0,0,0}; // a region representing the entire array 22 23 18 psphotTestArguments (&argc, argv); 24 19 … … 27 22 psImage *image = psFitsReadImage (NULL, file, region, 0); 28 23 psFitsClose (file); 24 25 psImageJpegColormap (argv[5]); 26 27 // psImage *fimage = psImageCopy (NULL, image, PS_TYPE_F32); 28 29 int binning = atof(argv[6]); 30 31 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEAN); 32 psImage *fimage = psImageRebin (NULL, image, NULL, 0, binning, stats); 33 34 float min = atof(argv[3]); 35 float max = atof(argv[4]); 36 37 psImageJpeg (fimage, argv[2], min, max); 38 39 psFree (header); 40 psFree (image); 41 exit (0); 42 } 43 44 45 # if (0) 46 47 psMetadata *row; 48 psArray *table; 49 50 psMetadataItem *mdi; 29 51 30 52 psMetadataConfigWrite (header, argv[2]); … … 59 81 psFitsWriteHeader (header, fits); 60 82 psFitsWriteTable (fits, theader, table); 61 psFitsClose (fits);62 83 63 psFree (header); 64 psFree (image); 65 exit (0); 66 } 84 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
