IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2006, 3:02:08 PM (20 years ago)
Author:
Paul Price
Message:

Applying RHL patch. Generally improves the error handling and traceback. pmConcepts.c and pmConceptsRead.c done by PAP (RHL did this also, but I had already done them). Resolved conflicts, except for pmFPAfile.c, which uses psAbort in some instances where RHL's patch had psError; leave this for Gene to decide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pslib/psImageUnbin.c

    r6872 r7311  
    143143        }
    144144        // Nx,Ny
    145         V = vIn[nx-1][ny-1];
     145        V = vIn[ny-1][nx-1];
    146146        for (int iy = ny*DY - dy; iy < Ny; iy++)
    147147        {
     
    161161static int MAX_SAMPLE_PIXELS;
    162162
    163 void psImageClippedStatsInit (int nMax)
     163void psImageClippedStatsInit (int nMax, unsigned long seed)
    164164{
    165165
    166166    MAX_SAMPLE_PIXELS = nMax;
    167167
     168    if (rnd && seed) {
     169        psFree(rnd);
     170        rnd = NULL;
     171    }
    168172    if (!rnd) {
    169         rnd = psRandomAlloc (PS_RANDOM_TAUS, 0);
     173        rnd = psRandomAlloc (PS_RANDOM_TAUS, seed);
    170174    }
    171175    return;
Note: See TracChangeset for help on using the changeset viewer.