Changeset 31156 for trunk/ppSub/src/ppSubConvolve.c
- Timestamp:
- Apr 4, 2011, 1:13:59 PM (15 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppSubConvolve.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub
- Property svn:ignore
-
old new 17 17 test 18 18 Doxyfile 19 a.out.dSYM
-
- Property svn:ignore
-
trunk/ppSub/src/ppSubConvolve.c
r29551 r31156 39 39 } 40 40 41 void ppSubSetThreads (void) { 42 // ppSub does not have any of its own thread handlers 43 return; 44 } 41 45 42 46 int main(int argc, char *argv[]) … … 49 53 goto die; 50 54 } 55 56 // generic arguments (version, dumpconfig) 57 PS_ARGUMENTS_GENERIC( ppSub, config, argc, argv ); 58 59 // thread arguments 60 PS_ARGUMENTS_THREADS( ppSub, config, argc, argv ) 51 61 52 62 bool reference = false; // Input is actually the reference image? … … 59 69 psMetadataAddStr(arguments, PS_LIST_TAIL, "-kernel", 0, "Convolution kernel", NULL); 60 70 psMetadataAddBool(arguments, PS_LIST_TAIL, "-reference", 0, "Input is actually reference?", false); 61 psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Threads to use", 0);62 71 psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-all", 0, "Save all outputs?", false); 63 72 … … 75 84 76 85 reference = psMetadataLookupBool(NULL, arguments, "-reference"); 77 threads = psMetadataLookupS32(NULL, arguments, " -threads");86 threads = psMetadataLookupS32(NULL, arguments, "NTHREADS"); 78 87 fileList("PPSUB.INPUT", inImage, "Input image", config); 79 88 fileList("PPSUB.INPUT.MASK", inMask, "Input mask", config); … … 239 248 if (threads > 0) { 240 249 pmSubtractionThreadsInit(); 241 psThreadPoolInit(threads);242 250 } 243 251
Note:
See TracChangeset
for help on using the changeset viewer.
