developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#import "GPUImageFilter.h"
 
@interface GPUImageDirectionalNonMaximumSuppressionFilter : GPUImageFilter
{
    GLint texelWidthUniform, texelHeightUniform;
    GLint upperThresholdUniform, lowerThresholdUniform;
    
    BOOL hasOverriddenImageSizeFactor;
}
 
// The texel width and height determines how far out to sample from this texel. By default, this is the normalized width of a pixel, but this can be overridden for different effects.
@property(readwrite, nonatomic) CGFloat texelWidth; 
@property(readwrite, nonatomic) CGFloat texelHeight; 
 
// These thresholds set cutoffs for the intensities that definitely get registered (upper threshold) and those that definitely don't (lower threshold)
@property(readwrite, nonatomic) CGFloat upperThreshold;
@property(readwrite, nonatomic) CGFloat lowerThreshold;
 
@end