Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
SkGaussFilter Class Reference

#include <SkGaussFilter.h>

Public Member Functions

 SkGaussFilter (double sigma)
 
size_t size () const
 
int radius () const
 
int width () const
 
const double * begin () const
 
const double * end () const
 

Static Public Attributes

static constexpr int kGaussArrayMax = 6
 

Detailed Description

Definition at line 15 of file SkGaussFilter.h.

Constructor & Destructor Documentation

◆ SkGaussFilter()

SkGaussFilter::SkGaussFilter ( double  sigma)
explicit

Definition at line 105 of file SkGaussFilter.cpp.

105 {
106 SkASSERT(0 <= sigma && sigma < 2);
107
108 fN = calculate_bessel_factors(sigma, fBasis);
109}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static int calculate_bessel_factors(double sigma, double *gauss)

Member Function Documentation

◆ begin()

const double * SkGaussFilter::begin ( ) const
inline

Definition at line 26 of file SkGaussFilter.h.

26{ return &fBasis[0]; }

◆ end()

const double * SkGaussFilter::end ( ) const
inline

Definition at line 27 of file SkGaussFilter.h.

27{ return &fBasis[fN]; }

◆ radius()

int SkGaussFilter::radius ( ) const
inline

Definition at line 22 of file SkGaussFilter.h.

22{ return fN - 1; }

◆ size()

size_t SkGaussFilter::size ( ) const
inline

Definition at line 21 of file SkGaussFilter.h.

21{ return fN; }

◆ width()

int SkGaussFilter::width ( ) const
inline

Definition at line 23 of file SkGaussFilter.h.

23{ return 2 * this->radius() + 1; }
int radius() const
Definition: SkGaussFilter.h:22

Member Data Documentation

◆ kGaussArrayMax

constexpr int SkGaussFilter::kGaussArrayMax = 6
inlinestaticconstexpr

Definition at line 17 of file SkGaussFilter.h.


The documentation for this class was generated from the following files: