/
GPUImageSmoothToonFilter.h
executable file
·28 lines (21 loc) · 1.12 KB
/
GPUImageSmoothToonFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#import "GPUImageFilterGroup.h"
@class GPUImageGaussianBlurFilter;
@class GPUImageToonFilter;
/** This uses a similar process as the GPUImageToonFilter, only it precedes the toon effect with a Gaussian blur to smooth out noise.
*/
@interface GPUImageSmoothToonFilter : GPUImageFilterGroup
{
GPUImageGaussianBlurFilter *blurFilter;
GPUImageToonFilter *toonFilter;
}
/// The image width and height factors tweak the appearance of the edges. By default, they match the filter size in pixels
@property(readwrite, nonatomic) CGFloat texelWidth;
/// The image width and height factors tweak the appearance of the edges. By default, they match the filter size in pixels
@property(readwrite, nonatomic) CGFloat texelHeight;
/// The radius of the underlying Gaussian blur. The default is 2.0.
@property (readwrite, nonatomic) CGFloat blurRadiusInPixels;
/// The threshold at which to apply the edges, default of 0.2
@property(readwrite, nonatomic) CGFloat threshold;
/// The levels of quantization for the posterization of colors within the scene, with a default of 10.0
@property(readwrite, nonatomic) CGFloat quantizationLevels;
@end