Ion
|
#include "ion/text/sdfutils.h"
#include "ion/base/logging.h"
#include "ion/math/utils.h"
#include "ion/math/vector.h"
#include "ion/math/vectorutils.h"
Go to the source code of this file.
Namespaces | |
ion | |
Copyright 2016 Google Inc. | |
ion::text | |
Functions | |
const Grid | ion::text::ComputeSdfGrid (const Grid &image_grid, size_t padding) |
Public SDF utility functions. More... | |
bool any_distance_changed |
This is set to true when a value in the distances grid is modified.
Definition at line 100 of file sdfutils.cc.
Vector2i cur_pixel |
Indices of the current pixel being operated on.
Definition at line 98 of file sdfutils.cc.
Grid distances |
Final distance values.
Definition at line 96 of file sdfutils.cc.
Array2<Vector2i> distances_to_edges |
Current pixel distances in X and Y to edges.
Definition at line 94 of file sdfutils.cc.
const Array2<Vector2d>& gradients |
Local gradients in X and Y.
Definition at line 92 of file sdfutils.cc.
const Grid& image |
The original monochrome image data, as doubles (0 - 1).
Definition at line 90 of file sdfutils.cc.
Referenced by ion::image::ConvertImage(), ion::image::NinePatch::NinePatch(), ion::gfx::CubeMapTexture::~CubeMapTexture(), and ion::gfx::Texture::~Texture().