Matlab wrapper for disttransform_deadreckoning(). More...
#include "mex.h"
#include "mex_utils.h"
#include <stdlib.h>
#include "array.h"
#include "distances.h"
#include "imageproc.h"
Go to the source code of this file.
Functions | |
void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
Matlab wrapper for disttransform_deadreckoning().
This distance-transform (DT) of a binary image includes at each pixel the shortest distance to the closest nonzero point in the input image.
This implementation uses the dead-reckoning algorithm from
@article{grevera2004dead, title={{The" Dead reckoning" signed distance transform}}, author={Grevera, G.J.}, journal={Computer Vision and Image Understanding}, volume={95}, number={3}, pages={317--333}, year={2004} }
The MATLAB-interface is as follows:
[ dt ] = distancetransform( binarymatrix ); The input array is treated as binary, i.e. if a value is >0, it is assumed to be 1, else it is 0. Input must be double.
Definition in file distancetransform.c.
void mexFunction | ( | int | nlhs, | |
mxArray * | plhs[], | |||
int | nrhs, | |||
const mxArray * | prhs[] | |||
) |
Definition at line 39 of file distancetransform.c.