IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2012, 6:32:19 PM (14 years ago)
Author:
watersc1
Message:

merge from trunk. Preliminary versions of stacktool/warptool updates and regenerate_background.pl script. The warp code is finished and tested, and I still need to get the stack version resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/psLib/src/imageops/psImageConvolve.c

    r33089 r34772  
    605605    PS_ASSERT_IMAGE_NON_NULL(image, false);
    606606
     607    if (sigma < 0.25) {
     608        psTrace("psLib.imageops", 5, "sigma: %f < 0.25 skipping smoothing", sigma);
     609        return true;
     610    }
     611
    607612    // relevant terms
    608613    int Nrange = sigma*Nsigma + 0.5;    // Number of pixels either side for convolution kernel
     614    if (Nrange < 1) {
     615        // using zero will cause an arithmetic exception in the loop
     616        psTrace("psLib.imageops", 5, "Nrange %d for smoothing too small skipping smoothing", Nrange);
     617        return true;
     618    }
    609619    int Nx = image->numCols;            // Number of columns
    610620    int Ny = image->numRows;            // Number of rows
Note: See TracChangeset for help on using the changeset viewer.