IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2006, 2:31:19 PM (20 years ago)
Author:
gusciora
Message:

Several mods mostly to the psPolynomial fitting routines.

File:
1 edited

Legend:

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

    r6186 r6193  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-01-23 22:25:31 $
     11 *  @version $Revision: 1.88 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-01-26 00:31:19 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    432432                for (y = 0; y < input->numCols; y++) {
    433433                    double pixel;
    434                     /*
    435                                         if (input->type.type == PS_TYPE_S8) {
    436                                             pixel = (double) input->data.S8[x][y];
    437                                         } else if (input->type.type == PS_TYPE_U16) {
    438                                             pixel = (double) input->data.U16[x][y];
    439                                         } else if (input->type.type == PS_TYPE_F32) {
    440                                             pixel = (double) input->data.F32[x][y];
    441                                         } else if (input->type.type == PS_TYPE_F64) {
    442                                             pixel = input->data.F64[x][y];
    443                                         }
    444                     */
     434                    if (0) {
     435                        if (input->type.type == PS_TYPE_S8) {
     436                            pixel = (double) input->data.S8[x][y];
     437                        } else if (input->type.type == PS_TYPE_U16) {
     438                            pixel = (double) input->data.U16[x][y];
     439                        } else if (input->type.type == PS_TYPE_F32) {
     440                            pixel = (double) input->data.F32[x][y];
     441                        } else if (input->type.type == PS_TYPE_F64) {
     442                            pixel = input->data.F64[x][y];
     443                        }
     444                    }
    445445                    pixel = nodes->data.F64[x][y];
    446446                    sums[i][j] += pixel * psPolynomial1DEval(chebPolys[i], rScalingFactors[x]) *
Note: See TracChangeset for help on using the changeset viewer.