![]() | InDesign SDK 20.5 |
#include <TranFxConvolutionFilter.h>
Public Member Functions | |
| Kernel (int32 width, int32 height, const float *coefficients) | |
| virtual | ~Kernel () |
| uint32 | GetWidth () const |
| uint32 | GetHeight () const |
| int32 | GetXOrigin () const |
| int32 | GetYOrigin () const |
| const float * | GetCoefficients () const |
| virtual void | ApplySum (TranFxConvolutionFilter::Pixel &sum) |
Convolution kernel that contains a matrix of coefficients used to compute a value for a pixel based on the value of surrounding pixels.
| TranFxConvolutionFilter::Kernel::Kernel | ( | int32 | width, |
| int32 | height, | ||
| const float * | coefficients | ||
| ) |
Constructs kernel from an array containing a a matrix of co-efficients of the given width and height.
| width | of matrix |
| height | of matrix |
| coefficients | matrix of coefficients as an array in row major order. |
| inlinevirtual |
Destructor.
| inlinevirtual |
Sub-classes can specialise this to change the computed output value in some way. Values might require to be normalised for example.
| sum | computed output value for the current pixel. |
| inline |
Return the filter matrix in row major order.
| inline |
Return the height of this filter.
| inline |
Return the width of this filter.
| inline |
Return the x origin of this filter. This identifies the x component of the pixel position whose output value is being computed by this filter.
| inline |
Return the y origin of this filter. This identifies the x component of the pixel position whose output value is being computed by this filter.