#include <mask_Filter.h>
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) | |
~mask_Filter () | |
int | set (uint8_t threshold, float mask_rate, float unmask_rate) |
uint8_t | getThreshold () |
float | getMaskRate () |
float | getUnmaskRate () |
phImage * | getMaskImage () |
phFilter * | cloneFilter () |
Protected Member Functions | |
int | filter () |
Private Attributes | |
uint8_t | m_threshold |
float | m_mask_rate |
float | m_unmask_rate |
float * | m_mask_buffer |
uint32_t | m_mask_buffer_size |
phImage * | m_image |
uint8_t * | m_mask_image |
uint32_t | m_mask_image_size |
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |