Changeset 14521
- Timestamp:
- Aug 15, 2007, 4:23:37 PM (19 years ago)
- Location:
- trunk/psModules/src/imcombine
- Files:
-
- 2 edited
-
pmSubtractionKernels.c (modified) (2 diffs)
-
pmSubtractionKernels.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionKernels.c
r14476 r14521 4 4 5 5 #include <stdio.h> 6 #include <string.h> 6 7 #include <pslib.h> 7 8 … … 628 629 } 629 630 } 631 632 633 pmSubtractionKernelsType pmSubtractionKernelsTypeFromString(const char *type) 634 { 635 if (strcasecmp(type, "POIS") == 0) { 636 return PM_SUBTRACTION_KERNEL_POIS; 637 } 638 if (strcasecmp(type, "ISIS") == 0) { 639 return PM_SUBTRACTION_KERNEL_ISIS; 640 } 641 if (strcasecmp(type, "SPAM") == 0) { 642 return PM_SUBTRACTION_KERNEL_SPAM; 643 } 644 if (strcasecmp(type, "FRIES") == 0) { 645 return PM_SUBTRACTION_KERNEL_FRIES; 646 } 647 if (strcasecmp(type, "GUNK") == 0) { 648 return PM_SUBTRACTION_KERNEL_GUNK; 649 } 650 if (strcasecmp(type, "RINGS") == 0) { 651 return PM_SUBTRACTION_KERNEL_RINGS; 652 } 653 654 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unrecognised kernel type: %s", type); 655 return PM_SUBTRACTION_KERNEL_NONE; 656 } -
trunk/psModules/src/imcombine/pmSubtractionKernels.h
r14455 r14521 6 6 /// Type of subtraction kernel 7 7 typedef enum { 8 PM_SUBTRACTION_KERNEL_NONE, ///< Nothing --- an error 8 9 PM_SUBTRACTION_KERNEL_POIS, ///< Pan-STARRS Optimal Image Subtraction --- delta functions 9 10 PM_SUBTRACTION_KERNEL_ISIS, ///< Traditional kernel --- gaussians modified by polynomials … … 91 92 ); 92 93 94 /// Return the appropriate type from a string 95 pmSubtractionKernelsType pmSubtractionKernelsTypeFromString(const char *string // String name for kernel type 96 ); 97 98 93 99 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
