Defines | Enumerations | Functions | Variables
vl_inthist.c File Reference
#include <mexutils.h>
#include <vl/generic.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "inthist.tc"
Include dependency graph for vl_inthist.c:

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 []

Define Documentation

#define PROCESS (   T,
  INTEGRAL 
)
Value:
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.

#define T   vl_int32

Definition at line 53 of file vl_inthist.c.

#define T   vl_uint32

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.


Enumeration Type Documentation

anonymous enum
Enumerator:
opt_mass 
opt_numLabels 
opt_verbose 

Definition at line 23 of file vl_inthist.c.


Function Documentation

void mexFunction ( int nout  ,
mxArray *  out[],
int  nin,
const mxArray *  in[] 
)

Definition at line 58 of file vl_inthist.c.


Variable Documentation

Initial value:
 {
  {"Mass",         1,   opt_mass,         },
  {"NumLabels",    1,   opt_numLabels     },
  {"Verbose",      0,   opt_verbose       },
  {0,              0,   0                 }
}

Definition at line 26 of file vl_inthist.c.



libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:52