MotionDetector
MotionDetector
#include <icy/vision/motiondetector.h>class MotionDetectorDefined in src/vision/include/icy/vision/motiondetector.h:49
Inherits:
Detector
List of all members
| Name | Kind | Owner |
|---|---|---|
MotionDetector | function | Declared here |
setConfig | function | Declared here |
config | function | Declared here |
stats | function | Declared here |
reset | function | Declared here |
process | function | Declared here |
_config | variable | Declared here |
_seen | variable | Declared here |
_emitted | variable | Declared here |
_warmedFrames | variable | Declared here |
_width | variable | Declared here |
_height | variable | Declared here |
_lastEventTimeUsec | variable | Declared here |
_lastScore | variable | Declared here |
_previousGrid | variable | Declared here |
_currentGrid | variable | Declared here |
sampleLumaGrid | function | Declared here |
diffScore | function | Declared here |
emitEvent | function | Declared here |
sanitize | function | Declared here |
Event | variable | Inherited from Detector |
~Detector | function | Inherited from Detector |
reset | function | Inherited from Detector |
process | function | Inherited from Detector |
Inherited from Detector
| Kind | Name | Description |
|---|---|---|
variable | Event | |
function | ~Detector virtual | Defaulted destructor. |
function | reset virtual | |
function | process virtual |
Public Methods
| Return | Name | Description |
|---|---|---|
MotionDetector explicit | ||
void | setConfig | |
MotionDetectorConfig | config const | |
MotionDetectorStats | stats const | |
void | reset virtual override | |
void | process virtual override |
MotionDetector
explicit
explicit MotionDetector(MotionDetectorConfig config = {})Defined in src/vision/include/icy/vision/motiondetector.h:52
setConfig
void setConfig(MotionDetectorConfig config)Defined in src/vision/include/icy/vision/motiondetector.h:54
config
const
MotionDetectorConfig config() constDefined in src/vision/include/icy/vision/motiondetector.h:55
stats
const
MotionDetectorStats stats() constDefined in src/vision/include/icy/vision/motiondetector.h:56
reset
virtual override
virtual void reset() overrideDefined in src/vision/include/icy/vision/motiondetector.h:57
Reimplements
process
virtual override
virtual void process(const VisionFramePacket & packet) overrideDefined in src/vision/include/icy/vision/motiondetector.h:59
Reimplements
Private Attributes
| Return | Name | Description |
|---|---|---|
MotionDetectorConfig | _config | |
uint64_t | _seen | |
uint64_t | _emitted | |
uint32_t | _warmedFrames | |
int | _width | |
int | _height | |
int64_t | _lastEventTimeUsec | |
float | _lastScore | |
std::vector< uint8_t > | _previousGrid | |
std::vector< uint8_t > | _currentGrid |
_config
MotionDetectorConfig _configDefined in src/vision/include/icy/vision/motiondetector.h:67
_seen
uint64_t _seen = 0Defined in src/vision/include/icy/vision/motiondetector.h:68
_emitted
uint64_t _emitted = 0Defined in src/vision/include/icy/vision/motiondetector.h:69
_warmedFrames
uint32_t _warmedFrames = 0Defined in src/vision/include/icy/vision/motiondetector.h:70
_width
int _width = 0Defined in src/vision/include/icy/vision/motiondetector.h:71
_height
int _height = 0Defined in src/vision/include/icy/vision/motiondetector.h:72
_lastEventTimeUsec
int64_t _lastEventTimeUsec = 0Defined in src/vision/include/icy/vision/motiondetector.h:73
_lastScore
float _lastScore = 0.0fDefined in src/vision/include/icy/vision/motiondetector.h:74
_previousGrid
std::vector< uint8_t > _previousGridDefined in src/vision/include/icy/vision/motiondetector.h:75
_currentGrid
std::vector< uint8_t > _currentGridDefined in src/vision/include/icy/vision/motiondetector.h:76
Private Methods
| Return | Name | Description |
|---|---|---|
void | sampleLumaGrid const | |
float | diffScore const | |
void | emitEvent |
sampleLumaGrid
const
void sampleLumaGrid(const VisionFramePacket & packet, std::vector< uint8_t > & out) constDefined in src/vision/include/icy/vision/motiondetector.h:63
diffScore
const
float diffScore(const std::vector< uint8_t > & current) constDefined in src/vision/include/icy/vision/motiondetector.h:64
emitEvent
void emitEvent(const VisionFramePacket & packet, float score)Defined in src/vision/include/icy/vision/motiondetector.h:65
Private Static Methods
| Return | Name | Description |
|---|---|---|
MotionDetectorConfig | sanitize static |
sanitize
static
static MotionDetectorConfig sanitize(MotionDetectorConfig config)Defined in src/vision/include/icy/vision/motiondetector.h:62
