Changeset 26579
- Timestamp:
- Jan 12, 2010, 4:34:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psModules/src/imcombine/pmSubtraction.c
r26562 r26579 64 64 } 65 65 66 // Contribute to an image of the solved kernel component for ISIS67 static void solvedKernel ISIS(psKernel *kernel, // Kernel, updated68 const pmSubtractionKernels *kernels, // Kernel basis functions69 float value, // Normalisation value for basis function70 int index // Index of basis function of interest66 // Contribute to an image of the solved kernel component using the preCalculated image 67 static 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 71 71 ) 72 72 { … … 152 152 case PM_SUBTRACTION_KERNEL_GUNK: { 153 153 if (i < kernels->inner) { 154 solvedKernel ISIS(kernel, kernels, value, i);154 solvedKernelPreCalc(kernel, kernels, value, i); 155 155 } else { 156 156 // Using delta function … … 162 162 break; 163 163 } 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: 172 167 case PM_SUBTRACTION_KERNEL_DECONV_HERM: { 173 solvedKernelISIS(kernel, kernels, value, i); 174 break;168 solvedKernelPreCalc(kernel, kernels, value, i); 169 break; 175 170 } 176 171 case PM_SUBTRACTION_KERNEL_RINGS: { … … 463 458 #endif 464 459 465 // Convolve a stamp using a n ISISkernel basis function466 static psKernel *convolveStamp ISIS(const psKernel *image, // Image to convolve467 const pmSubtractionKernels *kernels, // Kernel basis functions468 int index, // Index of basis function of interest469 int footprint // Half-size of stamp460 // Convolve a stamp using a pre-calculated kernel basis function 461 static 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 470 465 ) 471 466 { … … 674 669 if (index < kernels->inner) { 675 670 // Photometric scaling is already built in to the precalculated kernel 676 return convolveStamp ISIS(image, kernels, index, footprint);671 return convolveStampPreCalc(image, kernels, index, footprint); 677 672 } 678 673 // Using delta function … … 683 678 return convolved; 684 679 } 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: 691 683 case PM_SUBTRACTION_KERNEL_DECONV_HERM: { 692 return convolveStampISIS(image, kernels, index, footprint);693 }684 return convolveStampPreCalc(image, kernels, index, footprint); 685 } 694 686 case PM_SUBTRACTION_KERNEL_RINGS: { 695 687 psKernel *convolved = psKernelAlloc(-footprint, footprint, -footprint, footprint); // Convolved image
Note:
See TracChangeset
for help on using the changeset viewer.
