#include <rgrl_feature_set_location_masked.h>
Inheritance diagram for rgrl_feature_set_location_masked:

Definition at line 21 of file rgrl_feature_set_location_masked.h.
Public Types | |
| typedef vcl_vector< rgrl_feature_sptr > | feature_vector |
Public Member Functions | |
| rgrl_feature_set_location_masked (rgrl_feature_set_sptr const &fea_set, rgrl_mask_sptr mask) | |
| ~rgrl_feature_set_location_masked () | |
| feature_vector const & | all_features () const |
| Return all the features. | |
| rgrl_mask_box | bounding_box () const |
| Return the bounding box encloses the feature set. | |
| virtual const vcl_type_info & | type () const |
| Return the type of feature. | |
| void | features_in_region (feature_vector &final_results, rgrl_mask_box const &roi) const |
| void | features_within_radius (feature_vector &final_results, vnl_vector< double > const ¢er, double radius) const |
| Return the features in a given circle/sphere. | |
| rgrl_feature_sptr | nearest_feature (rgrl_feature_sptr const &feature) const |
| Nearest feature based on Euclidean distance. | |
| rgrl_feature_sptr | nearest_feature (const vnl_vector< double > &loc) const |
| Nearest feature based on Euclidean distance. | |
| void | features_within_radius (feature_vector &results, rgrl_feature_sptr const &feature, double distance) const |
| Return all features within a given Euclidean distance. | |
| void | k_nearest_features (feature_vector &results, const vnl_vector< double > &loc, unsigned int k) const |
| Return the k nearest features based on Euclidean distance. | |
| void | k_nearest_features (feature_vector &results, rgrl_feature_sptr const &feature, unsigned int k) const |
| Return the k nearest features based on Euclidean distance. | |
| rgrl_type_macro (rgrl_feature_set_location_masked, rgrl_feature_set) | |
| void | set_label (rgrl_feature_set_label const &label) |
| set label. | |
| rgrl_feature_set_label const & | label () const |
| get label. | |
| virtual void | features_in_region (feature_vector &results, rgrl_mask_box const &roi) const=0 |
| Return the features in a given ROI. | |
| virtual void | features_within_radius (feature_vector &results, vnl_vector< double > const ¢er, double radius) const =0 |
| Return the features in a given circle/sphere. | |
| virtual void | features_within_radius (feature_vector &results, rgrl_feature_sptr const &feature, double distance) const =0 |
| Return all features within a given distance of the given feature, one per segment (if segmented). | |
| virtual void | k_nearest_features (feature_vector &results, const vnl_vector< double > &feature_loc, unsigned int k) const=0 |
| Return the k nearest features to the given location, one per segment (if segmented). | |
| virtual void | k_nearest_features (feature_vector &results, rgrl_feature_sptr const &feature, unsigned int k) const=0 |
| Return the k nearest features, one per segment (if segmented). | |
| rgrl_type_macro (rgrl_feature_set, rgrl_object) | |
| virtual bool | is_type (const vcl_type_info &type) const |
| void | set_debug_flag (unsigned int debugFlag) const |
| Set the value of the debug flag. A non-zero value turns debugging on. | |
| unsigned int | debug_flag () const |
| Get the value of the debug flag. | |
| void | set_warning (bool) const |
| Set the flag for warning messages. | |
| bool | warning () const |
| Get the warning flag. | |
| unsigned int | add_observer (rgrl_event_sptr event, rgrl_command_sptr) |
| Allow people to add/remove/invoke observers (callbacks) to any rgrl object. | |
| rgrl_command_sptr | get_command (unsigned int tag) |
| Get the command associated with the given tag. | |
| void | invoke_event (const rgrl_event &) |
| Call execute(. | |
| void | invoke_event (const rgrl_event &) const |
| Call execute(. | |
| void | remove_observer (unsigned int tag) |
| Remove the observer with this tag value. | |
| bool | has_observer (const rgrl_event &event) const |
| Return true if an observer is registered for this event. | |
| void | ref () |
| void | unref () |
| int | get_references () const |
| bool | is_referenced () const |
Static Public Member Functions | |
| static const vcl_type_info & | type_id () |
Protected Attributes | |
| rgrl_feature_set_label | label_ |
| feature_vector | fea_vec_ |
Private Attributes | |
| rgrl_feature_set_sptr | fea_set_sptr_ |
| rgrl_mask_sptr | mask_ |
typedef vcl_vector<rgrl_feature_sptr> rgrl_feature_set::feature_vector [inherited] |
Definition at line 64 of file rgrl_feature_set.h.
| rgrl_feature_set_location_masked::rgrl_feature_set_location_masked | ( | rgrl_feature_set_sptr const & | fea_set, | |
| rgrl_mask_sptr | mask | |||
| ) | [inline] |
Definition at line 26 of file rgrl_feature_set_location_masked.h.
| rgrl_feature_set_location_masked::~rgrl_feature_set_location_masked | ( | ) | [inline] |
Definition at line 33 of file rgrl_feature_set_location_masked.h.
| feature_vector const& rgrl_feature_set_location_masked::all_features | ( | ) | const [inline, virtual] |
Return all the features.
Reimplemented from rgrl_feature_set.
Definition at line 37 of file rgrl_feature_set_location_masked.h.
| rgrl_mask_box rgrl_feature_set_location_masked::bounding_box | ( | ) | const [virtual] |
Return the bounding box encloses the feature set.
Implements rgrl_feature_set.
Definition at line 21 of file rgrl_feature_set_location_masked.cxx.
| virtual const vcl_type_info& rgrl_feature_set_location_masked::type | ( | ) | const [inline, virtual] |
Return the type of feature.
Implements rgrl_feature_set.
Definition at line 47 of file rgrl_feature_set_location_masked.h.
| void rgrl_feature_set_location_masked::features_in_region | ( | feature_vector & | final_results, | |
| rgrl_mask_box const & | roi | |||
| ) | const |
Definition at line 26 of file rgrl_feature_set_location_masked.cxx.
| void rgrl_feature_set_location_masked::features_within_radius | ( | feature_vector & | final_results, | |
| vnl_vector< double > const & | center, | |||
| double | radius | |||
| ) | const |
Return the features in a given circle/sphere.
Definition at line 41 of file rgrl_feature_set_location_masked.cxx.
| rgrl_feature_sptr rgrl_feature_set_location_masked::nearest_feature | ( | rgrl_feature_sptr const & | feature | ) | const [virtual] |
Nearest feature based on Euclidean distance.
Implements rgrl_feature_set.
Definition at line 56 of file rgrl_feature_set_location_masked.cxx.
| rgrl_feature_sptr rgrl_feature_set_location_masked::nearest_feature | ( | const vnl_vector< double > & | loc | ) | const [virtual] |
Nearest feature based on Euclidean distance.
Implements rgrl_feature_set.
Definition at line 67 of file rgrl_feature_set_location_masked.cxx.
| void rgrl_feature_set_location_masked::features_within_radius | ( | feature_vector & | results, | |
| rgrl_feature_sptr const & | feature, | |||
| double | distance | |||
| ) | const |
Return all features within a given Euclidean distance.
Definition at line 78 of file rgrl_feature_set_location_masked.cxx.
| void rgrl_feature_set_location_masked::k_nearest_features | ( | feature_vector & | results, | |
| const vnl_vector< double > & | loc, | |||
| unsigned int | k | |||
| ) | const |
Return the k nearest features based on Euclidean distance.
Definition at line 87 of file rgrl_feature_set_location_masked.cxx.
| void rgrl_feature_set_location_masked::k_nearest_features | ( | feature_vector & | results, | |
| rgrl_feature_sptr const & | feature, | |||
| unsigned int | k | |||
| ) | const |
Return the k nearest features based on Euclidean distance.
Definition at line 96 of file rgrl_feature_set_location_masked.cxx.
| rgrl_feature_set_location_masked::rgrl_type_macro | ( | rgrl_feature_set_location_masked | , | |
| rgrl_feature_set | ||||
| ) |
| void rgrl_feature_set::set_label | ( | rgrl_feature_set_label const & | label | ) | [inline, inherited] |
| rgrl_feature_set_label const& rgrl_feature_set::label | ( | ) | const [inline, inherited] |
| virtual void rgrl_feature_set::features_in_region | ( | feature_vector & | results, | |
| rgrl_mask_box const & | roi | |||
| ) | const [pure virtual, inherited] |
Return the features in a given ROI.
| virtual void rgrl_feature_set::features_within_radius | ( | feature_vector & | results, | |
| vnl_vector< double > const & | center, | |||
| double | radius | |||
| ) | const [pure virtual, inherited] |
Return the features in a given circle/sphere.
| virtual void rgrl_feature_set::features_within_radius | ( | feature_vector & | results, | |
| rgrl_feature_sptr const & | feature, | |||
| double | distance | |||
| ) | const [pure virtual, inherited] |
Return all features within a given distance of the given feature, one per segment (if segmented).
| virtual void rgrl_feature_set::k_nearest_features | ( | feature_vector & | results, | |
| const vnl_vector< double > & | feature_loc, | |||
| unsigned int | k | |||
| ) | const [pure virtual, inherited] |
Return the k nearest features to the given location, one per segment (if segmented).
| virtual void rgrl_feature_set::k_nearest_features | ( | feature_vector & | results, | |
| rgrl_feature_sptr const & | feature, | |||
| unsigned int | k | |||
| ) | const [pure virtual, inherited] |
Return the k nearest features, one per segment (if segmented).
| rgrl_feature_set::rgrl_type_macro | ( | rgrl_feature_set | , | |
| rgrl_object | ||||
| ) | [inherited] |
| static const vcl_type_info& rgrl_object::type_id | ( | ) | [inline, static, inherited] |
| virtual bool rgrl_object::is_type | ( | const vcl_type_info & | type | ) | const [inline, virtual, inherited] |
| void rgrl_object::set_debug_flag | ( | unsigned int | debugFlag | ) | const [inherited] |
Set the value of the debug flag. A non-zero value turns debugging on.
Definition at line 19 of file rgrl_object.cxx.
| unsigned int rgrl_object::debug_flag | ( | ) | const [inherited] |
| void rgrl_object::set_warning | ( | bool | ) | const [inherited] |
| bool rgrl_object::warning | ( | ) | const [inherited] |
| unsigned int rgrl_object::add_observer | ( | rgrl_event_sptr | event, | |
| rgrl_command_sptr | ||||
| ) | [inherited] |
Allow people to add/remove/invoke observers (callbacks) to any rgrl object.
This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an rgrl_ommand to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command.
Definition at line 47 of file rgrl_object.cxx.
| rgrl_command_sptr rgrl_object::get_command | ( | unsigned int | tag | ) | [inherited] |
| void rgrl_object::invoke_event | ( | const rgrl_event & | ) | [inherited] |
Call execute(.
) on all the rgrl_commands observing this event id.
Definition at line 69 of file rgrl_object.cxx.
| void rgrl_object::invoke_event | ( | const rgrl_event & | ) | const [inherited] |
Call execute(.
) on all the rgrl_commands observing this event id.
The actions triggered by this call doesn't modify this object.
Definition at line 83 of file rgrl_object.cxx.
| void rgrl_object::remove_observer | ( | unsigned int | tag | ) | [inherited] |
| bool rgrl_object::has_observer | ( | const rgrl_event & | event | ) | const [inherited] |
Return true if an observer is registered for this event.
Definition at line 107 of file rgrl_object.cxx.
Definition at line 81 of file rgrl_feature_set_location_masked.h.
Definition at line 82 of file rgrl_feature_set_location_masked.h.
rgrl_feature_set_label rgrl_feature_set::label_ [protected, inherited] |
Definition at line 149 of file rgrl_feature_set.h.
feature_vector rgrl_feature_set::fea_vec_ [protected, inherited] |
Definition at line 150 of file rgrl_feature_set.h.
1.5.1