IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26579


Ignore:
Timestamp:
Jan 12, 2010, 4:34:36 PM (16 years ago)
Author:
eugene
Message:

add ISIS_RADIAL; change convolveStampISIS to convolveStampPreCalc; change solvedKernelISIS to solvedKernelPreCalc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmSubtraction.c

    r26562 r26579  
    6464}
    6565
    66 // Contribute to an image of the solved kernel component for ISIS
    67 static void solvedKernelISIS(psKernel *kernel, // Kernel, updated
    68                              const pmSubtractionKernels *kernels, // Kernel basis functions
    69                              float value,                         // Normalisation value for basis function
    70                              int index                  // Index of basis function of interest
     66// Contribute to an image of the solved kernel component using the preCalculated image
     67static void solvedKernelPreCalc(psKernel *kernel, // Kernel, updated
     68                                const pmSubtractionKernels *kernels, // Kernel basis functions
     69                                float value,                         // Normalisation value for basis function
     70                                int index                  // Index of basis function of interest
    7171    )
    7272{
     
    152152          case PM_SUBTRACTION_KERNEL_GUNK: {
    153153              if (i < kernels->inner) {
    154                   solvedKernelISIS(kernel, kernels, value, i);
     154                  solvedKernelPreCalc(kernel, kernels, value, i);
    155155              } else {
    156156                  // Using delta function
     
    162162              break;
    163163          }
    164           case PM_SUBTRACTION_KERNEL_ISIS: {
    165               solvedKernelISIS(kernel, kernels, value, i);
    166               break;
    167           }
    168           case PM_SUBTRACTION_KERNEL_HERM: {
    169               solvedKernelISIS(kernel, kernels, value, i);
    170               break;
    171           }
     164          case PM_SUBTRACTION_KERNEL_ISIS:
     165          case PM_SUBTRACTION_KERNEL_ISIS_RADIAL:
     166          case PM_SUBTRACTION_KERNEL_HERM:               
    172167          case PM_SUBTRACTION_KERNEL_DECONV_HERM: {
    173               solvedKernelISIS(kernel, kernels, value, i);
    174               break;
     168              solvedKernelPreCalc(kernel, kernels, value, i);             
     169              break;
    175170          }
    176171          case PM_SUBTRACTION_KERNEL_RINGS: {
     
    463458#endif
    464459
    465 // Convolve a stamp using an ISIS kernel basis function
    466 static psKernel *convolveStampISIS(const psKernel *image, // Image to convolve
    467                                    const pmSubtractionKernels *kernels, // Kernel basis functions
    468                                    int index,                            // Index of basis function of interest
    469                                    int footprint                         // Half-size of stamp
     460// Convolve a stamp using a pre-calculated kernel basis function
     461static psKernel *convolveStampPreCalc(const psKernel *image, // Image to convolve
     462                                      const pmSubtractionKernels *kernels, // Kernel basis functions
     463                                      int index,                            // Index of basis function of interest
     464                                      int footprint                         // Half-size of stamp
    470465    )
    471466{
     
    674669          if (index < kernels->inner) {
    675670              // Photometric scaling is already built in to the precalculated kernel
    676               return convolveStampISIS(image, kernels, index, footprint);
     671              return convolveStampPreCalc(image, kernels, index, footprint);
    677672          }
    678673          // Using delta function
     
    683678          return convolved;
    684679      }
    685       case PM_SUBTRACTION_KERNEL_ISIS: {
    686           return convolveStampISIS(image, kernels, index, footprint);
    687       }
    688       case PM_SUBTRACTION_KERNEL_HERM: {
    689           return convolveStampISIS(image, kernels, index, footprint);
    690       }
     680      case PM_SUBTRACTION_KERNEL_ISIS:
     681      case PM_SUBTRACTION_KERNEL_ISIS_RADIAL:
     682      case PM_SUBTRACTION_KERNEL_HERM:
    691683      case PM_SUBTRACTION_KERNEL_DECONV_HERM: {
    692           return convolveStampISIS(image, kernels, index, footprint);
    693       }
     684            return convolveStampPreCalc(image, kernels, index, footprint);
     685        }
    694686      case PM_SUBTRACTION_KERNEL_RINGS: {
    695687          psKernel *convolved = psKernelAlloc(-footprint, footprint, -footprint, footprint); // Convolved image
Note: See TracChangeset for help on using the changeset viewer.