Structural deformable models
Classes | Macros | Functions
Sensor.h File Reference
#include <math.h>
#include <cmath>
#include <vector>
#include <set>
#include "common.h"
#include "Point.h"
#include "Image.h"
Include dependency graph for Sensor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sensor
 
class  ZeroSensor
 
class  PPSensor
 

Macros

#define SENSOR_GAUSS_NORMALIZATION_RANGE   2
 
#define _USE_MINMAX_NORMALIZATION_
 

Functions

sensor_ptr getZeroSensor ()
 
template<typename SensorType , typename FirstArgType , typename... Args>
std::shared_ptr< SensorType > makeSensor (FirstArgType source, Args...args)
 
template<typename SensorType >
std::shared_ptr< SensorType > makeSensor ()
 

Macro Definition Documentation

#define _USE_MINMAX_NORMALIZATION_
#define SENSOR_GAUSS_NORMALIZATION_RANGE   2

Definition at line 13 of file Sensor.h.

Referenced by Sensor::getWeightedValue().

Function Documentation

sensor_ptr getZeroSensor ( )
template<typename SensorType , typename FirstArgType , typename... Args>
std::shared_ptr<SensorType> makeSensor ( FirstArgType  source,
Args...  args 
)

Definition at line 189 of file Sensor.h.

190 {
191  std::shared_ptr<SensorType> s = std::make_shared<SensorType>(args...);
192  s->changeSource(source);
193  return s;
194 }
template<typename SensorType >
std::shared_ptr<SensorType> makeSensor ( )

Definition at line 197 of file Sensor.h.

198 {
199  return std::make_shared<SensorType>();
200 }