| Flutter Impeller |

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
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
impeller::kKernelRadiusPerSigma
constexpr static float kKernelRadiusPerSigma
Definition: sigma.h:24
impeller
Definition: aiks_context.cc:10