Changeset 36282
- Timestamp:
- Nov 11, 2013, 11:21:30 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130904/psLib
- Files:
-
- 3 edited
-
src/imageops/psImageConvolve.h (modified) (1 diff)
-
src/imageops/psImageConvolve2dCache.c (modified) (2 diffs)
-
test/imageops/tap_psImageConvolve2dCache.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psLib/src/imageops/psImageConvolve.h
r36278 r36282 326 326 bool psImageConvolveGetThreads(void); 327 327 328 psImageSmooth2dCacheData *psImageSmooth2dCacheAlloc ( void);328 psImageSmooth2dCacheData *psImageSmooth2dCacheAlloc (float Nsigma); 329 329 bool psImageSmooth2dCacheKernel_PS1_V1 (psImageSmooth2dCacheData *smdata, float sigma, float kappa); 330 330 bool psImageSmooth2dCache_F32(psImage *image, psImageSmooth2dCacheData *smdata); -
branches/eam_branches/ipp-20130904/psLib/src/imageops/psImageConvolve2dCache.c
r36278 r36282 83 83 84 84 // allocate the psImageSmooth2dCache data structure, but do not define the kernel 85 psImageSmooth2dCacheData *psImageSmooth2dCacheAlloc ( void) {85 psImageSmooth2dCacheData *psImageSmooth2dCacheAlloc (float Nsigma) { 86 86 87 87 psImageSmooth2dCacheData *smdata = psAlloc(sizeof(psImageSmooth2dCacheData)); … … 89 89 90 90 smdata->radflux = NULL; 91 smdata->Nsigma = 3;91 smdata->Nsigma = Nsigma; 92 92 smdata->Ns = -1; 93 93 -
branches/eam_branches/ipp-20130904/psLib/test/imageops/tap_psImageConvolve2dCache.c
r36279 r36282 60 60 input->data.F32[Yo][Xo] = 1.0; 61 61 62 psImageSmooth2dCacheData *smdata = psImageSmooth2dCacheAlloc ( );62 psImageSmooth2dCacheData *smdata = psImageSmooth2dCacheAlloc (3.0); 63 63 ok(smdata, "init smdata"); 64 64 ok(!smdata->radflux, "init radflux to NULL");
Note:
See TracChangeset
for help on using the changeset viewer.
