![]() |
naev 0.12.6
|
Code for generating our distance fields (. More...
#include "edtaa3func.h"
Go to the source code of this file.
Functions | |
| double * | make_distance_mapd (double *data, unsigned int width, unsigned int height, double *vmax) |
| Like the original: perform a Euclidean Distance Transform on the input and normalize to [0,1], with a value of 0.5 on the boundary. | |
| float * | make_distance_mapbf (unsigned char *img, unsigned int width, unsigned int height, double *vmax) |
| Perform a Euclidean Distance Transform on the input and normalize to [0,1], with a value of 0.5 on the boundary. | |
Code for generating our distance fields (.
Definition in file distance_field.c.
| float * make_distance_mapbf | ( | unsigned char * | img, |
| unsigned int | width, | ||
| unsigned int | height, | ||
| double * | vmax ) |
Perform a Euclidean Distance Transform on the input and normalize to [0,1], with a value of 0.5 on the boundary.
| img | Pixel values, row-major order. | |
| width | Number of columns. | |
| height | Number of rows. | |
| [out] | vmax | The underlying distance value corresponding to +1.0. |
Definition at line 127 of file distance_field.c.
| double * make_distance_mapd | ( | double * | data, |
| unsigned int | width, | ||
| unsigned int | height, | ||
| double * | vmax ) |
Like the original: perform a Euclidean Distance Transform on the input and normalize to [0,1], with a value of 0.5 on the boundary.
| data | width*height values, row-major order. Positive values are object pixels. Negative/zero values are background pixels. | |
| width | Number of columns. | |
| height | Number of rows. | |
| [out] | vmax | The underlying distance value corresponding to +1.0. |
Definition at line 60 of file distance_field.c.