Changeset 26008 for trunk/ppSmooth/src
- Timestamp:
- Nov 2, 2009, 6:07:02 PM (17 years ago)
- Location:
- trunk/ppSmooth/src
- Files:
-
- 3 edited
-
ppSmoothArguments.c (modified) (3 diffs)
-
ppSmoothLoop.c (modified) (1 diff)
-
ppSmoothReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSmooth/src/ppSmoothArguments.c
r25976 r26008 66 66 psArgumentRemove (argnum, &argc, argv); 67 67 } 68 // XXX ADD this in? 69 if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) { 70 psArgumentRemove(argnum, &argc, argv); 71 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE, 72 "Filename for configuration dump", argv[argnum]); 73 psArgumentRemove(argnum, &argc, argv); 74 } 68 75 69 76 if (argc != 2) usage (); … … 71 78 // Add the input and output images (which remain on the command-line) to the arguments list 72 79 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "OUTPUT", 0, "Name of the output image", argv[1]); 80 81 73 82 74 83 return config; … … 89 98 // } 90 99 91 // XXX ADD this in?92 // if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {93 // psArgumentRemove(argnum, &argc, argv);94 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,95 // "Filename for configuration dump", argv[argnum]);96 // psArgumentRemove(argnum, &argc, argv);97 // }98 100 -
trunk/ppSmooth/src/ppSmoothLoop.c
r25976 r26008 88 88 psFree(view); 89 89 90 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 91 if (dump_file) { 92 if (!pmConfigDump(config, dump_file)) { 93 ESCAPE("Unable to dump configuration."); 94 } 95 } 96 97 90 98 return true; 91 99 } -
trunk/ppSmooth/src/ppSmoothReadout.c
r25976 r26008 35 35 float minGauss = 0.1; 36 36 float nSigma = 3.0; 37 float sigma = psMetadataLookupF32 (&status, recipe, "SIGMA"); 37 float sigma; 38 if (!(sigma = psMetadataLookupF32(&status,config->arguments,"SIGMA"))) { 39 sigma = psMetadataLookupF32 (&status, recipe, "SIGMA"); 40 } 38 41 39 42 bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
Note:
See TracChangeset
for help on using the changeset viewer.
