- Timestamp:
- Oct 22, 2013, 6:27:11 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psLib/src/imageops/psImageConvolve.c
r35767 r36228 780 780 } 781 781 782 void psImageSmooth _PreAlloc_DataFree (psImageSmooth_PreAlloc_Data *smdata) {782 void psImageSmoothCacheDataFree (psImageSmoothCacheData *smdata) { 783 783 psFree (smdata->resultX); 784 784 psFree (smdata->resultY); … … 786 786 } 787 787 788 psImageSmooth_PreAlloc_Data *psImageSmooth_PreAlloc_DataAlloc (psImage *image, double sigma, double Nsigma) { 788 // allocate the psImageSmoothCache data structure, but do not define the kernel 789 psImageSmoothCacheData *psImageSmoothCacheAlloc (psImage *image, double sigma, double Nsigma) { 789 790 790 791 psImageSmooth_PreAlloc_Data *smdata = psAlloc(sizeof(psImageSmooth_PreAlloc_Data)); … … 807 808 smdata->Ny = image->numRows; // Number of rows 808 809 809 IMAGE_SMOOTH_GAUSS(smdata->kernel, smdata->Nrange, sigma, F32);810 // IMAGE_SMOOTH_GAUSS(smdata->kernel, smdata->Nrange, sigma, F32); 810 811 811 812 // use a temp running buffer for X and Y directions. … … 819 820 } 820 821 822 // generate a Gaussian smoothing kernel for supplied sigma. sigma here does not need to match 823 // that used to allocate the structure, but it is recommended 824 bool psImageSmoothCacheKernel_Gauss (psImageSmoothCacheData *smdata, float sigma) { 825 // check for NULL structure elements? 826 IMAGE_SMOOTH_GAUSS(smdata->kernel, smdata->Nrange, sigma, F32); 827 return true; 828 } 829 821 830 // we can use the same DATA structure on multiple images of the same size 822 bool psImageSmooth _PreAlloc_F32(psImage *image, psImageSmooth_PreAlloc_Data *smdata)831 bool psImageSmoothCache_F32(psImage *image, psImageSmoothCacheData *smdata) 823 832 { 824 833 PS_ASSERT_IMAGE_NON_NULL(image, false); 834 PS_ASSERT_KERNEL_NON_NULL(smdata->kernel, false); 825 835 // assert on data type 826 836
Note:
See TracChangeset
for help on using the changeset viewer.
