IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2011, 1:13:59 PM (15 years ago)
Author:
eugene
Message:

minor fixes from eam branch

Location:
trunk/ppSub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub

    • Property svn:ignore
      •  

        old new  
        1717test
        1818Doxyfile
         19a.out.dSYM
  • trunk/ppSub/src/ppSubConvolve.c

    r29551 r31156  
    3939}
    4040
     41void ppSubSetThreads (void) {
     42    // ppSub does not have any of its own thread handlers
     43    return;
     44}
    4145
    4246int main(int argc, char *argv[])
     
    4953        goto die;
    5054    }
     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 )
    5161
    5262    bool reference = false;             // Input is actually the reference image?
     
    5969        psMetadataAddStr(arguments, PS_LIST_TAIL, "-kernel", 0, "Convolution kernel", NULL);
    6070        psMetadataAddBool(arguments, PS_LIST_TAIL, "-reference", 0, "Input is actually reference?", false);
    61         psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Threads to use", 0);
    6271        psMetadataAddBool(arguments, PS_LIST_TAIL, "-save-all", 0, "Save all outputs?", false);
    6372
     
    7584
    7685        reference = psMetadataLookupBool(NULL, arguments, "-reference");
    77         threads = psMetadataLookupS32(NULL, arguments, "-threads");
     86        threads = psMetadataLookupS32(NULL, arguments, "NTHREADS");
    7887        fileList("PPSUB.INPUT", inImage, "Input image", config);
    7988        fileList("PPSUB.INPUT.MASK", inMask, "Input mask", config);
     
    239248        if (threads > 0) {
    240249            pmSubtractionThreadsInit();
    241             psThreadPoolInit(threads);
    242250        }
    243251
Note: See TracChangeset for help on using the changeset viewer.