#include <mexutils.h>
#include <vl/generic.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "inthist.tc"
Go to the source code of this file.
Defines | |
#define | PROCESS(T, INTEGRAL) |
#define | SFX i |
#define | SFX ui |
#define | SFX d |
#define | SFX f |
#define | T vl_int32 |
#define | T vl_uint32 |
#define | T double |
#define | T float |
Enumerations | |
enum | { opt_mass = 1, opt_numLabels, opt_verbose } |
Functions | |
void | mexFunction (int nout, mxArray *out[], int nin, const mxArray *in[]) |
Variables | |
vlmxOption | options [] |
size_t const K = width*height ; \ T* dataPt = histPt ; \ if (massPt == 0) { \ for (q = 0 ; q < numMaps ; ++ q) { \ for (k = 0 ; k < K ; ++ k) { \ size_t label = *labelsPt++ ; \ if (label) dataPt [k + (label - 1) * K] += (T) 1 ; \ } \ } \ } else { \ for (q = 0 ; q < numMaps ; ++q) { \ for (k = 0 ; k < K ; ++ k) { \ size_t label = *labelsPt++ ; \ if (label) dataPt [k + (label - 1) * K] \ += ((T*)massPt) [k] ; \ } \ } \ } \ for (k = 0 ; k < numLabels ; ++k) { \ INTEGRAL (dataPt + k*K, height, \ dataPt + k*K, height, width, height) ; \ }
#define SFX i |
Definition at line 54 of file vl_inthist.c.
#define SFX ui |
Definition at line 54 of file vl_inthist.c.
#define SFX d |
Definition at line 54 of file vl_inthist.c.
#define SFX f |
Definition at line 54 of file vl_inthist.c.
Definition at line 53 of file vl_inthist.c.
Definition at line 53 of file vl_inthist.c.
#define T double |
Definition at line 53 of file vl_inthist.c.
#define T float |
Definition at line 53 of file vl_inthist.c.
anonymous enum |
Definition at line 23 of file vl_inthist.c.
void mexFunction | ( | int nout | , |
mxArray * | out[], | ||
int | nin, | ||
const mxArray * | in[] | ||
) |
Definition at line 58 of file vl_inthist.c.
{ {"Mass", 1, opt_mass, }, {"NumLabels", 1, opt_numLabels }, {"Verbose", 0, opt_verbose }, {0, 0, 0 } }
Definition at line 26 of file vl_inthist.c.