IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14311


Ignore:
Timestamp:
Jul 18, 2007, 4:03:42 PM (19 years ago)
Author:
Paul Price
Message:

Don't need to convolve if the pixel is masked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r14305 r14311  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-07-19 01:39:28 $
     6 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-07-19 02:03:42 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    10501050                            convWeight->data.F32[y][x] = NAN;
    10511051                        }
    1052                     }
    1053 
    1054                     // Convolve the image
    1055                     for (int v = -size; v <= size; v++) {
    1056                         for (int u = -size; u <= size; u++) {
    1057                             convImage->data.F32[y][x] += kernelImage->kernel[v][u] *
    1058                                 inImage->data.F32[y + v][x + u];
    1059                         }
    1060                     }
    1061 
    1062                     // Convolve the weight (variance) map
    1063                     if (inWeight) {
     1052                    } else {
     1053                        // Convolve the image
    10641054                        for (int v = -size; v <= size; v++) {
    10651055                            for (int u = -size; u <= size; u++) {
    1066                                 convWeight->data.F32[y][x] += kernelWeight->kernel[v][u] *
    1067                                     inWeight->data.F32[y + v][x + u];
     1056                                convImage->data.F32[y][x] += kernelImage->kernel[v][u] *
     1057                                    inImage->data.F32[y + v][x + u];
     1058                            }
     1059                        }
     1060
     1061                        // Convolve the weight (variance) map
     1062                        if (inWeight) {
     1063                            for (int v = -size; v <= size; v++) {
     1064                                for (int u = -size; u <= size; u++) {
     1065                                    convWeight->data.F32[y][x] += kernelWeight->kernel[v][u] *
     1066                                        inWeight->data.F32[y + v][x + u];
     1067                                }
    10681068                            }
    10691069                        }
Note: See TracChangeset for help on using the changeset viewer.