developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import "GPUImage3x3TextureSamplingFilter.h"
 
/** Runs a 3x3 convolution kernel against the image
 */
@interface GPUImage3x3ConvolutionFilter : GPUImage3x3TextureSamplingFilter
{
    GLint convolutionMatrixUniform;
}
 
/** Convolution kernel to run against the image
 
 The convolution kernel is a 3x3 matrix of values to apply to the pixel and its 8 surrounding pixels.
 The matrix is specified in row-major order, with the top left pixel being one.one and the bottom right three.three
 If the values in the matrix don't add up to 1.0, the image could be brightened or darkened.
 */
@property(readwrite, nonatomic) GPUMatrix3x3 convolutionKernel;
 
@end