IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2008, 4:04:13 PM (18 years ago)
Author:
Paul Price
Message:

Adding renormalisation of variance map.

File:
1 edited

Legend:

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

    r19962 r20492  
    230230    psMetadataAddS32(arguments, PS_LIST_TAIL, "-opt-order", 0, "Maximum order for optimum kernel search", -1);
    231231    psMetadataAddBool(arguments, PS_LIST_TAIL, "-dual", 0, "Dual convolution", false);
    232     psMetadataAddBool(arguments, PS_LIST_TAIL, "-renorm", 0, "Renormalise weights?", false);
    233     psMetadataAddS32(arguments, PS_LIST_TAIL, "-renorm-width", 0, "Renormalisation width", 0);
     232    psMetadataAddBool(arguments, PS_LIST_TAIL, "-renorm", 0, "Renormalise variance maps?", false);
     233    psMetadataAddStr(arguments, PS_LIST_TAIL, "-renorm-mean", 0,
     234                     "Statistic for mean in renormalisation", NULL);
     235    psMetadataAddStr(arguments, PS_LIST_TAIL, "-renorm-stdev", 0,
     236                     "Statistic for stdev in renormalisation", NULL);
     237    psMetadataAddF32(arguments, PS_LIST_TAIL, "-renorm-width", 0, "Gaussian width for renormalisation", NAN);
     238    psMetadataAddS32(arguments, PS_LIST_TAIL, "-renorm-num", 0, "Number of samples for renormalisation", 0);
    234239    psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", false);
    235240    psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0);
     
    336341    if (psMetadataLookupBool(NULL, arguments, "-renorm") ||
    337342        psMetadataLookupBool(NULL, recipe, "RENORM")) {
    338         psMetadataAddBool(recipe, PS_LIST_TAIL, "RENORM", PS_META_REPLACE, "Renormalise weights?", true);
    339         VALUE_ARG_RECIPE_INT("-renorm-width", "RENORM.WIDTH", S32, 0);
    340     }
     343        psMetadataAddBool(arguments, PS_LIST_TAIL, "RENORM", 0, "Renormalise variance maps?", true);
     344    }
     345    VALUE_ARG_RECIPE_INT("-renorm-num", "RENORM.NUM", S32, 0);
     346    VALUE_ARG_RECIPE_FLOAT("-renorm-width", "RENORM.WIDTH", F32);
     347    valueArgRecipeStr(arguments, recipe, "-renorm-mean", "RENORM.MEAN", recipe);
     348    valueArgRecipeStr(arguments, recipe, "-renorm-stdev", "RENORM.STDEV", recipe);
    341349
    342350    // Need to update this because it could have been overwritten by the camera's own recipe
Note: See TracChangeset for help on using the changeset viewer.