|
Structural deformable models
|
#include <SensorSet.h>


Public Types | |
| enum | MappingTypes { MS_IDENTITY, MS_CLAMPLU, MS_CLAMPL, MS_CLAMPU, MS_GAUSSNORM, MS_MGAUSSNORM, MS_MCLAMPU, MS_BIAS, MS_LAST } |
Public Types inherited from PPSensor | |
| enum | PPState { PP_DONT =0, PP_DO, PP_FORCE } |
Public Types inherited from Sensor | |
| enum | UpdateParam { UPD_NOTHING =0, UPD_DATA =1, UPD_SCALE =2, UPD_CWEIGHTS =4, UPD_DIR =8, UPD_MINMAX =16, UPD_LAST =32, UPD_ALL =0xffffffff } |
Public Member Functions | |
| MappingSensor (const std::string &mapn="") | |
| int | getNChannels () const |
| Sensor & | assign (const Sensor &rhs) |
| std::ostream & | print (std::ostream &os) const |
| const char * | getMappingName () const |
| dword | getMappingID () const |
| dword | setMappingID (dword id) |
| dword | setMapping (const std::string &mname) |
| bool | readParams (std::istream &is) |
| bool | performUpdate () |
Public Member Functions inherited from PPSensor | |
| PPSensor () | |
| virtual float | getValue (int x, int y) const |
| virtual Point | getGradient (int x, int y) const |
| void | togglePP (enum PPState state=PP_DO) |
| dword | getPPState () const |
Public Member Functions inherited from Sensor | |
| virtual | ~Sensor () |
| sensor_cptr | getSource () |
| virtual void | changeSource (sensor_cptr _source) |
| void | replaceBy (sensor_ptr target) |
| bool | assignRef (sensor_cptr rhs) |
| float | getValue (const Point &p) const |
| get value at position p using nearest neighbour interpolation More... | |
| virtual std::vector< float > | getMValue (int x, int y) const |
| get multi-channel value More... | |
| Point2D | getGradient (const Point2D &p) const |
| get gradient at position p using nearest neighbor interpolation More... | |
| float | getMax () const |
| float | getMin () const |
| float | getMinMaxRange () const |
| float | getWeightedValue (int x, int y) const |
| get max normalized value at discrete position range [0,1] More... | |
| Point2D | getWeightedGradient (int x, int y) const |
| get range weighted gradient at discrete position More... | |
| void | setCWeights (const std::vector< float > &weights) |
| const std::vector< float > & | getCWeights () const |
| void | setDirection (const Point &dir) |
| const Point & | getDirection () const |
| void | setScale (float _scale) |
| float | getScale () const |
| bool | isModified (dword mask=UPD_ALL) const |
| void | setModified (dword mask=UPD_ALL) |
| void | unsetModified (dword mask=UPD_ALL) |
| bool | isUpdate (dword udMask) const |
| void | enableUpdate (dword udMask) |
| void | disableUpdate (dword udMask) |
| virtual int | getDim1Size () const |
| virtual int | getDim2Size () const |
| virtual int | getDim3Size () const |
| virtual int | getSkip () const |
| bool | isValid (int x, int y) const |
| virtual Image< float > | createSensorImage () const |
| const std::string & | getID () const |
| void | setID (const std::string &id) |
| virtual std::ostream & | hprint (std::ostream &os, SensorCollection *sc) const |
| void | refSuperSensor (sensor_ptr super) |
| void | unrefSuperSensor (sensor_ptr super) |
| void | invalidateSource () |
| template<typename Derived > | |
| std::shared_ptr< Derived > | shared_from_base () |
Protected Member Functions | |
| virtual float | calcValue (int x, int y) const |
| Computes saturation or some other colour indicator. More... | |
Protected Member Functions inherited from PPSensor | |
| void | fitSheets () |
| virtual void | calcAllValues () |
| virtual void | calcAllGradients () |
Protected Member Functions inherited from Sensor | |
| Sensor (dword updateMask) | |
| Sensor () | |
| virtual std::vector< float > | calcMValue (int x, int y) const |
| virtual Point | calcGradient (int x, int y) const |
| virtual void | calcMinMax () |
Protected Attributes | |
| dword | m_MappingID |
| std::vector< float > | m_Param |
Protected Attributes inherited from PPSensor | |
| Image< float > | values |
| caching sheet for sensed values More... | |
| Image< Point > | gradients |
| caching sheet for gradients More... | |
| dword | doPP |
| do preprocessing? More... | |
Protected Attributes inherited from Sensor | |
| sensor_cptr | source |
| float | scale |
| std::vector< float > | cweights |
| multi-channel weights ('color') More... | |
| Point | dir |
| direction parameter More... | |
| float | maxval |
| float | minval |
| overall minimum and maximum More... | |
| float | mean |
| float | stdev |
| overall mean and stdev More... | |
| dword | toupdate |
| bitflag for updates More... | |
| dword | updateMask |
| bitflag to mask unimportant updates More... | |
| std::string | m_ID |
| int | m_Skip |
| int | m_AddSkip |
Static Protected Attributes | |
| static const char * | s_MappingNames [] |
Additional Inherited Members | |
Static Public Member Functions inherited from Sensor | |
| static dword | getStringNumber (const char *sid) |
| static void | getNumberString (char sid[5], dword id) |
Sensor performing various mappings
Definition at line 360 of file SensorSet.h.
| Enumerator | |
|---|---|
| MS_IDENTITY | |
| MS_CLAMPLU | |
| MS_CLAMPL | |
| MS_CLAMPU | |
| MS_GAUSSNORM | |
| MS_MGAUSSNORM | |
| MS_MCLAMPU | |
| MS_BIAS | |
| MS_LAST | |
Definition at line 362 of file SensorSet.h.
|
inline |
Reimplemented from PPSensor.
Definition at line 284 of file SensorSet.cpp.
References PPSensor::assign(), m_MappingID, and m_Param.
|
inlineprotectedvirtual |
Computes saturation or some other colour indicator.
Implements Sensor.
Definition at line 385 of file SensorSet.h.
References Sensor::source.
|
inline |
|
inline |
Definition at line 375 of file SensorSet.h.
|
inlinevirtual |
Reimplemented from Sensor.
Definition at line 372 of file SensorSet.h.
References Sensor::assign(), and IntensitySensor::print().
|
virtual |
clear all data sheets
Reimplemented from PPSensor.
Definition at line 350 of file SensorSet.cpp.
References Sensor::isModified(), PPSensor::performUpdate(), Sensor::source, and dmutil::sqrt().
|
virtual |
Reimplemented from Sensor.
Definition at line 297 of file SensorSet.cpp.
References Sensor::print().
| bool MappingSensor::readParams | ( | std::istream & | is | ) |
Definition at line 321 of file SensorSet.cpp.
| dword MappingSensor::setMapping | ( | const std::string & | mname | ) |
Definition at line 314 of file SensorSet.cpp.
Definition at line 308 of file SensorSet.cpp.
|
protected |
Definition at line 420 of file SensorSet.h.
Referenced by assign().
|
protected |
Definition at line 421 of file SensorSet.h.
Referenced by assign().
|
staticprotected |
Definition at line 383 of file SensorSet.h.
Referenced by MahalSensor::saveConfig().
1.8.11