Changeset 36375 for trunk/psLib/src/imageops/psImageConvolve.h
- Timestamp:
- Dec 10, 2013, 2:55:11 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/imageops/psImageConvolve.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/psLib/src/imageops/psImageConvolve.h
r35767 r36375 26 26 #define PS_TYPE_KERNEL_NAME "psF32" ///< the data type for kernel as a string */ 27 27 28 /// a structure to contain data related to image smoothing with a 1D gauss kernel28 /// a structure to contain data related to image smoothing with a pre-cached 1D gauss kernel 29 29 typedef struct { 30 30 int Nx; … … 34 34 psF32 *resultY; 35 35 psVector *kernel; 36 } psImageSmooth_PreAlloc_Data; 36 } psImageSmoothCacheData; 37 38 /// a structure to contain data related to image smoothing with a pre-cached 1D gauss kernel 39 typedef struct { 40 float Nsigma; 41 int Ns; // number of pixel radii 42 float *radflux; // conv kernel in special positions 43 } psImageSmooth2dCacheData; 37 44 38 45 /// A convolution kernel … … 306 313 ); 307 314 308 psImageSmooth_PreAlloc_Data *psImageSmooth_PreAlloc_DataAlloc (psImage *image, double sigma, double Nsigma); 309 bool psImageSmooth_PreAlloc_F32(psImage *image, psImageSmooth_PreAlloc_Data *smdata); 315 psImageSmoothCacheData *psImageSmoothCacheAlloc (psImage *image, double sigma, double Nsigma); 316 bool psImageSmoothCache_F32(psImage *image, psImageSmoothCacheData *smdata); 317 bool psImageSmoothCacheKernel_Gauss (psImageSmoothCacheData *smdata, float sigma); 310 318 311 319 /// Control threading for image convolution functions … … 318 326 bool psImageConvolveGetThreads(void); 319 327 328 psImageSmooth2dCacheData *psImageSmooth2dCacheAlloc (float Nsigma); 329 bool psImageSmooth2dCacheKernel_PS1_V1 (psImageSmooth2dCacheData *smdata, float sigma, float kappa); 330 bool psImageSmooth2dCacheKernel_Gauss (psImageSmooth2dCacheData *smdata, float sigma); 331 bool psImageSmooth2dCache_F32(psImage *image, psImageSmooth2dCacheData *smdata); 332 320 333 /// @} 321 334 #endif // #ifndef PS_IMAGE_CONVOLVE_H
Note:
See TracChangeset
for help on using the changeset viewer.
