PointFilterRule Class Reference
[Centerfocus Options]

A single Point Filter Rule Config. More...

#include <pointFilter.h>

Collaboration diagram for PointFilterRule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PointFilterRule ()
 PointFilterRule (std::string str)
 creates a PointFilterRule from a string
Rule string format: [(exactVanishedFocalValues,jacobianRank, smooth(true/false), quadricsRank),passFilterRate]. Example: "[(14,5,false, 1),100]" Each 100 point where 14 focal values vanished and JacobianDimension is 5, quadricsRank is 1 schould be passed if this rule is applied.
 PointFilterRule (const PointFilterKey &key, uint64_t filterRate)
 create a PointFilterRule from a key (properties of the poins to which this ruls should be applied) and the filter pass rate.
 PointFilterRule (uint16_t exactVanishedFocalValues, uint16_t jacobianRank, bool smooth, uint16_t quadricsRank, uint64_t passFilterRate)
const rule * initRule ()
const rule & getRuleRef ()
 returns rule ref to parse a pointFilterRule.
Function is not constant, because using this rule as a parser will change the PointFilterRule object.
uint32_t getPassFilterRate () const
const PointFilterKeygetKeyConstRef () const
 get the rule key. The key models properties of the differential form points to which this ruls should be applied
bool operator< (const PointFilterRule &rule) const
 instead of two rules their keys are compared.
void print (std::ostream &os)
 print the string representation of this rule

Private Attributes

const rule * pointFilterRule_m
PointFilterKey key_m
 The key models properties of the differential form points to which this rule should be applied.
uint32_t passFilterRate_m
 point filter pass rate

Detailed Description

A single point filter rule config. Rule string format: [(exactVanishedFocalValues,jacobianRank, smooth(true/false), quadricsRank),passFilterRate]. Example: "[(14,5,false, 1),100]" Each hundredth point where 14 focal values vanished and Jacobian rank is 5, quadricListRank is 1 should be passed if this rule is applied.

Definition at line 114 of file pointFilter.h.


Constructor & Destructor Documentation

PointFilterRule::PointFilterRule (  )  [inline]

Definition at line 114 of file pointFilter.hpp.

References initRule().

Here is the call graph for this function:

PointFilterRule::PointFilterRule ( std::string  str  )  [inline]
Precondition:
exactVanishedFocalValues, jacobianRank, quadricsRank are 16 bit ints (unsigned and smaller than 65536) filterRate is a 64 bit integer
smooth_m is a 'true' or a 'false' string
Todo:
(optional) create or use a rule which matches the (unsigned and smaller than 65536) -condition

Definition at line 120 of file pointFilter.hpp.

References initRule(), and pointFilterRule_m.

Here is the call graph for this function:

PointFilterRule::PointFilterRule ( const PointFilterKey key,
uint64_t  filterRate 
) [inline]

Definition at line 141 of file pointFilter.hpp.

References initRule().

Here is the call graph for this function:

PointFilterRule::PointFilterRule ( uint16_t  exactVanishedFocalValues,
uint16_t  jacobianRank,
bool  smooth,
uint16_t  quadricsRank,
uint64_t  passFilterRate 
) [inline]

create a PointFilterRule from properties of the poins to which this ruls should be applied ( (exactVanishedFocalValues,jacobianRank, smooth(yes/no) quadricsRank) and the filter pass rate.

Definition at line 148 of file pointFilter.hpp.

References initRule().

Here is the call graph for this function:


Member Function Documentation

const PointFilterKey& PointFilterRule::getKeyConstRef (  )  const [inline]

Definition at line 163 of file pointFilter.h.

References key_m.

Referenced by CFPointFilter::addFilterRule().

uint32_t PointFilterRule::getPassFilterRate (  )  const [inline]

Definition at line 160 of file pointFilter.h.

References passFilterRate_m.

Referenced by CFPointFilter::addFilterRule().

const rule& PointFilterRule::getRuleRef (  )  [inline]

Definition at line 158 of file pointFilter.h.

References pointFilterRule_m.

Referenced by CFPointFilter::CFPointFilter().

const rule * PointFilterRule::initRule (  )  [inline]

Definition at line 160 of file pointFilter.hpp.

References PointFilterKey::getConstRuleRef(), key_m, passFilterRate_m, pointFilterRule_m, space_rule_g, and spacy_colon_g.

Referenced by PointFilterRule().

Here is the call graph for this function:

bool PointFilterRule::operator< ( const PointFilterRule rule  )  const [inline]

Definition at line 166 of file pointFilter.h.

References key_m.

void PointFilterRule::print ( std::ostream &  os  ) 

Definition at line 174 of file pointFilter.hpp.

References key_m, passFilterRate_m, and PointFilterKey::print().

Here is the call graph for this function:


Member Data Documentation

Definition at line 122 of file pointFilter.h.

Referenced by getKeyConstRef(), initRule(), operator<(), and print().

Definition at line 124 of file pointFilter.h.

Referenced by getPassFilterRate(), initRule(), and print().

const rule* PointFilterRule::pointFilterRule_m [private]

boost::spirit::rule to parse a point filter rule string.
Key string format: [keystring,passfilterRate]. Example: "[(14,5,false, 1),100]", see also key_m

Definition at line 118 of file pointFilter.h.

Referenced by getRuleRef(), initRule(), and PointFilterRule().


The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3