IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2008, 12:35:31 PM (18 years ago)
Author:
Paul Price
Message:

Add renormalisation of weight map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubArguments.c

    r15817 r17368  
    212212    psMetadataAddS32(arguments, PS_LIST_TAIL, "-opt-order", 0, "Maximum order for optimum kernel search", -1);
    213213    psMetadataAddBool(arguments, PS_LIST_TAIL, "-dual", 0, "Dual convolution", false);
     214    psMetadataAddBool(arguments, PS_LIST_TAIL, "-renorm", 0, "Renormalise weights?", false);
     215    psMetadataAddS32(arguments, PS_LIST_TAIL, "-renorm-width", 0, "Renormalisation width", 0);
    214216
    215217    if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 4) {
     
    291293                      psMetadataLookupBool(NULL, arguments, "-dual"));
    292294
     295    if (psMetadataLookupBool(NULL, arguments, "-renorm") || psMetadataLookupBool(NULL, recipe, "RENORM")) {
     296        psMetadataAddBool(config->arguments, PS_LIST_TAIL, "RENORM", 0, "Renormalise weights?", true);
     297        VALUE_ARG_RECIPE_INT("-renorm-width", "RENORM.WIDTH", S32, 0);
     298    }
     299
    293300    // Translate the kernel type
    294301    psString type = psMetadataLookupStr(NULL, arguments, "-type"); // Name of kernel type
Note: See TracChangeset for help on using the changeset viewer.