Changeset 28484 for branches/pap/ppArith/src/ppArithArguments.c
- Timestamp:
- Jun 24, 2010, 2:59:09 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppArith/src/ppArithArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ppArith/src/ppArithArguments.c
r21378 r28484 51 51 ) 52 52 { 53 psString value = psMetadataLookupStr(NULL, arguments, argName); // Value of interest 53 psString value = psMetadataLookupStr(NULL, arguments, argName); // Value of interest 54 54 if (value && strlen(value) > 0) { 55 55 return psMetadataAddStr(target, PS_LIST_TAIL, mdName, 0, NULL, value); … … 82 82 psMetadataAddStr(arguments, PS_LIST_TAIL, "-op", 0, "Operation to perform", NULL); 83 83 psMetadataAddStr(arguments, PS_LIST_TAIL, "-file2", 0, "Second image", NULL); 84 psMetadataAddF32(arguments, PS_LIST_TAIL, "-const2", 0, "Constant", NAN); 84 85 psMetadataAddBool(arguments, PS_LIST_TAIL, "-mask", 0, "Treat images as masks", false); 85 86 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL); … … 98 99 "File rule for output", outFilerule); 99 100 100 bool status = false; // Status for file definition 101 bool status = false; // Status for file definition 101 102 102 103 // First file … … 135 136 } 136 137 } 138 float const2 = psMetadataLookupF32(NULL, arguments, "-const2"); // Constant to apply 139 if (!isnan(const2)) { 140 if (name2) { 141 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Cannot specify both -file2 and -const2"); 142 goto ERROR; 143 } 144 psMetadataAddF32(config->arguments, PS_LIST_TAIL, "PPARITH.CONST", 0, "Constant to apply", const2); 145 } 137 146 138 147 // Output image
Note:
See TracChangeset
for help on using the changeset viewer.
