Changeset 34735 for branches/eam_branches/ipp-20120905/psLib
- Timestamp:
- Nov 29, 2012, 2:15:01 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
psLib/share/tai_utc.dat (modified) (2 diffs)
-
psLib/share/tai_utc.raw (modified) (1 diff)
-
psLib/src/imageops/psImageConvolve.c (modified) (1 diff)
-
psLib/src/math/psHistogram.c (modified) (1 diff)
-
psLib/src/math/psStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psLib/share/tai_utc.dat
r22679 r34735 12 12 # JD TAI-UTC Const 1 Const 2 13 13 # (days) (sec) (none) (none) 14 # psF64psF64 psF64 psF6414 # psF64 psF64 psF64 psF64 15 15 2437300.5 1.4228180 37300.0 0.0012960 16 16 2437512.5 1.3728180 37300.0 0.0012960 … … 51 51 2453736.5 33.0000000 41317.0 0.0000000 52 52 2454832.5 34.0000000 41317.0 0.0000000 53 2456109.5 35.0000000 41317.0 0.0000000 -
branches/eam_branches/ipp-20120905/psLib/share/tai_utc.raw
r22679 r34735 37 37 2006 JAN 1 =JD 2453736.5 TAI-UTC= 33.0 S + (MJD - 41317.) X 0.0 S 38 38 2009 JAN 1 =JD 2454832.5 TAI-UTC= 34.0 S + (MJD - 41317.) X 0.0 S 39 2012 JUL 1 =JD 2456109.5 TAI-UTC= 35.0 S + (MJD - 41317.) X 0.0 S -
branches/eam_branches/ipp-20120905/psLib/src/imageops/psImageConvolve.c
r33089 r34735 605 605 PS_ASSERT_IMAGE_NON_NULL(image, false); 606 606 607 if (sigma < 0.25) { 608 psTrace("psLib.imageops", 5, "sigma: %f < 0.25 skipping smoothing", sigma); 609 return true; 610 } 611 607 612 // relevant terms 608 613 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 } 609 619 int Nx = image->numCols; // Number of columns 610 620 int Ny = image->numRows; // Number of rows -
branches/eam_branches/ipp-20120905/psLib/src/math/psHistogram.c
r27553 r34735 58 58 psTrace("psLib.math", 3, "---- %s() begin ----\n", __func__); 59 59 psTrace("psLib.math", 5, "(lower, upper, n) is (%f, %f, %d)\n", lower, upper, n); 60 psAssert(n > 0, "Number of bins must be positive ");60 psAssert(n > 0, "Number of bins must be positive not %d", n); 61 61 psAssert(upper >= lower, "Bounds must be sensical"); 62 62 -
branches/eam_branches/ipp-20120905/psLib/src/math/psStats.c
r31152 r34735 764 764 goto escape; 765 765 } 766 if (!isfinite(max - min)) { 767 COUNT_WARNING(10, 100, "Range of of the input vector is too large: %lf.\n", (double)max - (double) min); 768 goto escape; 769 } 766 770 psTrace(TRACE, 6, "Data min/max is (%.2f, %.2f)\n", min, max); 767 771 … … 802 806 psTrace(TRACE, 6, "Numbins is %ld\n", numBins); 803 807 psTrace(TRACE, 6, "Creating a robust histogram from data range (%.2f - %.2f)\n", min, max); 808 809 // We are sometimes causing psHistogramAlloc to assert. 810 // Assert here so we can get more information about what is going wrong. 811 psAssert(numBins > 0, "Invalid numBins: %ld max: %f min: %f binSize: %f", numBins, max, min, binSize); 812 804 813 // Generate the histogram 805 814 histogram = psHistogramAlloc(min - 2.0*binSize, max + 2.0*binSize, numBins); … … 858 867 // if we did not mask anything, give up. 859 868 } 869 870 // We were causing psHistogramAlloc to assert. 871 // Assert here so we can get more information about what is going wrong. 872 psAssert(numBins > 0, "Invalid numBins %ld max: %f min: %f binSize: %f", numBins, max, min, binSize); 860 873 861 874 // ADD step 1: Convert the specific histogram to a cumulative histogram
Note:
See TracChangeset
for help on using the changeset viewer.
