A single Point Filter Rule Config. More...
#include <pointFilter.h>
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 PointFilterKey & | getKeyConstRef () 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 |
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.
PointFilterRule::PointFilterRule | ( | ) | [inline] |
Definition at line 114 of file pointFilter.hpp.
References initRule().
PointFilterRule::PointFilterRule | ( | std::string | str | ) | [inline] |
Definition at line 120 of file pointFilter.hpp.
References initRule(), and pointFilterRule_m.
PointFilterRule::PointFilterRule | ( | const PointFilterKey & | key, | |
uint64_t | filterRate | |||
) | [inline] |
Definition at line 141 of file pointFilter.hpp.
References initRule().
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().
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().
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().
PointFilterKey PointFilterRule::key_m [private] |
Definition at line 122 of file pointFilter.h.
Referenced by getKeyConstRef(), initRule(), operator<(), and print().
uint32_t PointFilterRule::passFilterRate_m [private] |
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().