Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

mask_Filter Class Reference
[Image Processing FiltersTemporal]

#include <mask_Filter.h>

Inheritance diagram for mask_Filter:

phFilter phMutex phObject List of all members.

Detailed Description

mask_Filter (or motion mask filter) masks off regions of an image that are constantly changing.

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.

test on all image formats

add example application code that shows how the processed images were output

add example image inputs and processed image outputs

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 ()
phImagegetMaskImage ()
phFiltercloneFilter ()

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
uint32_t m_mask_image_size

The documentation for this class was generated from the following files:

Copyright (C) 2002 - 2007 Philip D.S. Thoren ( )
University Of Massachusetts at Lowell
Robotics Lab Logo

Generated on Sat Jun 16 02:44:39 2007 for phission by  doxygen 1.4.4