#include <hypothesis_filter.h>
Inheritance diagram for mimas::hf::hypothesis_filter_data< Hypothesis_T, Pixel_T >:
Public Attributes | |
image< Pixel_T > | image |
std::vector< Hypothesis_T > | hypotheses |
We used this additionnal class as it allows policies to refer shared data during the construction of the hypothesis filter class. These data could not have been put as direct members of hypothesis filter as the variables would have spawn after the whole inheritence process that already need these data. For instance, hypothesis filter inherits of image_loader that needs a reference to the image variable that will contain the current image data.
This can be seen as a generic trick that allows policies to share data. I don't know if this technique is documented in the literature so "si le coeur vous en dit ..."
Said differently: we store in a policy the data that will be shared/used by different policies. This data can then be used by the subsequent inherited policies during the construction of the host class.
Definition at line 55 of file hypothesis_filter.h.
image<Pixel_T> mimas::hf::hypothesis_filter_data< Hypothesis_T, Pixel_T >::image |
Definition at line 57 of file hypothesis_filter.h.
std::vector<Hypothesis_T > mimas::hf::hypothesis_filter_data< Hypothesis_T, Pixel_T >::hypotheses |
Definition at line 58 of file hypothesis_filter.h.