Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
geometry
sigma.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
impeller/geometry/sigma.h
"
6
7
#include <sstream>
8
9
namespace
impeller
{
10
11
Sigma::operator
Radius
()
const
{
12
return
Radius
{sigma > 0.5f ? (sigma - 0.5f) *
kKernelRadiusPerSigma
: 0.0f};
13
}
14
15
Radius::operator
Sigma
()
const
{
16
return
Sigma
{radius > 0 ? radius /
kKernelRadiusPerSigma
+ 0.5f : 0.0f};
17
}
18
19
}
// namespace impeller
impeller
Definition
texture.h:18
impeller::kKernelRadiusPerSigma
static constexpr float kKernelRadiusPerSigma
Definition
sigma.h:24
sigma.h
impeller::Radius
For convolution filters, the "radius" is the size of the convolution kernel to use on the local space...
Definition
sigma.h:48
impeller::Sigma
In filters that use Gaussian distributions, "sigma" is a size of one standard deviation in terms of t...
Definition
sigma.h:32
Generated on Fri Apr 26 2024 06:14:11 for Flutter Engine by
1.9.8