IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2004, 12:14:39 PM (22 years ago)
Author:
gusciora
Message:

Changing order of args to poly eval function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageStats.c

    r2294 r2436  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-11-06 00:57:44 $
     11 *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-24 22:14:39 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    183183    sums[i][j]: This will contain the sum of
    184184                input->data.F32[x][y] *
    185                 psPolynomial1DEval((float) x, chebPolys[i]) *
    186                 psPolynomial1DEval((float) y, chebPolys[j]);
     185                psPolynomial1DEval(
     186chebPolys[i],
     187(float) x) *
     188                psPolynomial1DEval(
     189chebPolys[j],
     190(float) y,
     191);
    187192        over all pixels (x,y) in the image.
    188193  *****************************************************************************/
     
    249254                    }
    250255                    sums[i][j] += pixel *
    251                                   psPolynomial1DEval(rScalingFactors[x], chebPolys[i]) *
    252                                   psPolynomial1DEval(cScalingFactors[y], chebPolys[j]);
     256                                  psPolynomial1DEval(
     257                                      chebPolys[i],
     258                                      rScalingFactors[x]
     259                                  ) *
     260                                  psPolynomial1DEval(
     261                                      chebPolys[j],
     262                                      cScalingFactors[y]
     263                                  );
    253264                }
    254265            }
     
    336347                for (j = 0; j < coeffs->nY; j++) {
    337348                    polySum +=
    338                         psPolynomial1DEval(rScalingFactors[x], chebPolys[i]) *
    339                         psPolynomial1DEval(cScalingFactors[y], chebPolys[j]) *
     349                        psPolynomial1DEval(
     350                            chebPolys[i],
     351                            rScalingFactors[x]
     352                        ) *
     353                        psPolynomial1DEval(
     354                            chebPolys[j],
     355                            cScalingFactors[y]
     356
     357                        ) *
    340358                        coeffs->coeff[i][j];
    341359
Note: See TracChangeset for help on using the changeset viewer.