IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4223


Ignore:
Timestamp:
Jun 13, 2005, 10:09:53 AM (21 years ago)
Author:
gusciora
Message:

Cosmetic mods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmImageSubtract.c

    r4185 r4223  
    33 *  This file will ...
    44 *
     5 *  @author Paul Price, IfA (original prototype)
    56 *  @author GLG, MHPCC
    6  *  @author Paul Price, IfA
    77 *
    8  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-06-09 06:18:19 $
     8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-06-13 20:09:53 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737#include "pmImageSubtract.h"
    3838
     39// XXX: Put this is psConstants.h
    3940#define PS_ASSERT_INT_LESS_THAN(VAR1, VAR2, RVAL) \
    4041if (!(VAR1 < VAR2)) { \
     
    171172
    172173/*******************************************************************************
    173 XXX: Get the types correct.
     174XXX: Get the types correct (u, v, xOrder, yOrder).
    174175 
    175176XXX: For the various spatial orders, verify that the preCalc data does not
     
    194195    //
    195196    psS32 numSigmas = sigmas->n;
    196     //    psS32 nBF = 0;
    197     //    for (psS32 s = 0 ; s < numSigmas ; s++) {
    198     //        nBF+= ((orders->n + 1) * (orders->n + 2) / 2);
    199     //    }
    200     //    nBF*= ((spatialOrder + 1) * (spatialOrder + 2) / 2);
    201 
    202     //    psS32 nBF = 1;
    203     //    for (psS32 s = 0 ; s < numSigmas ; s++) {
    204     //        nBF*= ((orders->n + 1) * (orders->n + 2) / 2);
    205     //    }
    206     //    nBF*= ((spatialOrder + 1) * (spatialOrder + 2) / 2);
    207197
    208198    // XXX: Get rid of the sigma loop?  We merely multiple nBF by numSigmas?
     
    461451to ensure no seg faults.
    462452 ******************************************************************************/
    463 psF32 GeneralKernelConvolve(const psImage *input,
    464                             const psSubtractionKernels *kernels,
    465                             psS32 kernelID,
    466                             psS32 col,
    467                             psS32 row)
     453static psF32 GeneralKernelConvolve(const psImage *input,
     454                                   const psSubtractionKernels *kernels,
     455                                   psS32 kernelID,
     456                                   psS32 col,
     457                                   psS32 row)
    468458{
    469459    psS32 spatialOrder = kernels->p_spatialOrder;
     
    500490
    501491/*******************************************************************************
    502 XXX: How is the spatial order factor calculated?  Is it simply a x^iy^j power
    503 evaluated at the (x, y) center for the stamp?  Why bother with the 2-D
    504 polynomial in evaluating it?
    505  
    506492XXX: Should we assert that the footprint is equal to the kernel size, or does
    507493they have nothing in common.
     
    686672                        }
    687673                    } else {
    688                         printf("XXX: put some warning message here (bad kernel->type).\n");
     674                        psLogMsg(__func__, PS_LOG_WARN, "WARNING: unknown kernel->type.\n");
    689675                        return(false);
    690676                    } // if-else on kernel type.
     
    708694
    709695            //
    710             // XXX: understand this.
    711696            // XXX: Why aren't they using numSolveParams instead of numKernels?
    712697            // XXX: is this POIS specific?
    713             // XXX: What is config->penalty?
    714698            //
    715699            #define XXX_CONFIG_PENALTY 1.0
     
    900884arbitrary image with either an ISIS or POIS set of kernel basis functions.
    901885 ******************************************************************************/
    902 psImage *ConvolveImage(const psImage *input,
    903                        const psImage *mask,
    904                        psU32 badStampMaskVal,
    905                        const psVector *solution,
    906                        const psSubtractionKernels *kernels)
     886static psImage *ConvolveImage(const psImage *input,
     887                              const psImage *mask,
     888                              psU32 badStampMaskVal,
     889                              const psVector *solution,
     890                              const psSubtractionKernels *kernels)
    907891{
    908892    PS_ASSERT_IMAGE_NON_NULL(input, NULL);
     
    980964/*******************************************************************************
    981965 ******************************************************************************/
    982 psVector *CalculateDeviations(psVector *deviations,
    983                               psArray *stamps,
    984                               psS32 footprint,
    985                               const psImage *refImage,
    986                               const psImage *inImage,
    987                               const psImage *mask,
    988                               psU32 badStampMaskVal,
    989                               const psSubtractionKernels *kernels,
    990                               const psVector *solution)
     966static psVector *CalculateDeviations(psVector *deviations,
     967                                     psArray *stamps,
     968                                     psS32 footprint,
     969                                     const psImage *refImage,
     970                                     const psImage *inImage,
     971                                     const psImage *mask,
     972                                     psU32 badStampMaskVal,
     973                                     const psSubtractionKernels *kernels,
     974                                     const psVector *solution)
    991975{
    992976    PS_ASSERT_PTR_NON_NULL(stamps, NULL);
Note: See TracChangeset for help on using the changeset viewer.