naev 0.12.6
distance_field.h
1#pragma once
2
3double *make_distance_mapd( double *data, unsigned int width,
4 unsigned int height, double *vmax );
5
6float *make_distance_mapbf( unsigned char *img, unsigned int width,
7 unsigned int height, double *vmax );
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....
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,...