IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7612


Ignore:
Timestamp:
Jun 21, 2006, 11:03:49 AM (20 years ago)
Author:
drobbin
Message:

Edited psImageFitPoly and EvalPoly. Scaling factors were using incorrect indices. Test output still questionable but matches verified folder.

Location:
trunk/psLib
Files:
2 edited

Legend:

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

    r7535 r7612  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.96 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-06-13 20:02:05 $
     11 *  @version $Revision: 1.97 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-06-21 21:03:49 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    301301                        pixel = input->data.F64[y][x];
    302302                    }
    303                     sums[i][j] += pixel * psPolynomial1DEval(chebPolys[i],rScalingFactors[x]) *
    304                                   psPolynomial1DEval(chebPolys[j], cScalingFactors[y]);
     303                    sums[i][j] += pixel * psPolynomial1DEval(chebPolys[i],rScalingFactors[y]) *
     304                                  psPolynomial1DEval(chebPolys[j], cScalingFactors[x]);
    305305                }
    306306            }
     
    376376                for (long j = 0; j < (1 + coeffs->nY); j++) {
    377377                    polySum +=
    378                         psPolynomial1DEval(chebPolys[i], rScalingFactors[x]) *
    379                         psPolynomial1DEval(chebPolys[j], cScalingFactors[y]) *
     378                        psPolynomial1DEval(chebPolys[i], rScalingFactors[y]) *
     379                        psPolynomial1DEval(chebPolys[j], cScalingFactors[x]) *
    380380                        coeffs->coeff[i][j];
    381381                }
     
    592592        return -1;
    593593    }/* else if (col0 == col1 && row0 == row1) {
    594                                 psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    595                                         "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    596                                 return -1;
    597                             }
    598                         */
     594                                    psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     595                                            "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     596                                    return -1;
     597                                }
     598                            */
    599599    x0 = col0;
    600600    x1 = col1;
  • trunk/psLib/test/imageops/tst_psImageStats.c

    r7596 r7612  
    264264        for ( j = 0;j < CHEBY_Y_DIM;j++ ) {
    265265            fprintf(stderr, "Cheby Polynomial (%d, %d) coefficient is %.2f\n", i, j,
    266                     0.0001f+my2DPoly->coeff[ j ][ i ] );
     266                    0.0001f+my2DPoly->coeff[ i ][ j ] );
    267267        }
    268268    }
Note: See TracChangeset for help on using the changeset viewer.