Inheritance diagram for mask_Filter:
I got this idea from Andrew Chanler and Mike Baker; It takes the pixel values and slowly masks off areas with the value above the threshold. This filter is best used with motion/ddimage output;
If motion continually occurs in a region, then it slowly becomes ignored over time. If motion stops happening in a region, then it slowly brought back in.
The mask_rate is used to mask regions of the image at some rate. If this is set to a higher number than the unmask rate, it will mask fast and unmask slow.
The rate should be between 0.0 and 1.0;
Supports all Phission formats (phImageValidFormatMask). Although it hasn't been tested on all.
add example application code that shows how the processed images were output
Definition at line 74 of file mask_Filter.h.
Public Member Functions
|mask_Filter (uint8_t threshold=128, float mask_rate=0.01, float unmask_rate=0.001)|
|int||set (uint8_t threshold, float mask_rate, float unmask_rate)|
|phImage *||getMaskImage ()|
|phFilter *||cloneFilter ()|
Protected Member Functions
|Copyright (C) 2002 - 2007||
Philip D.S. Thoren ( email@example.com )
University Of Massachusetts at Lowell