Go to the documentation of this file.00001 #ifndef rgrl_initializer_h_
00002 #define rgrl_initializer_h_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include <rgrl/rgrl_transformation_sptr.h>
00015 #include <rgrl/rgrl_estimator_sptr.h>
00016 #include <rgrl/rgrl_view_sptr.h>
00017 #include <rgrl/rgrl_scale_sptr.h>
00018 #include <rgrl/rgrl_initializer_sptr.h>
00019 #include <rgrl/rgrl_mask.h>
00020 #include <rgrl/rgrl_mask_sptr.h>
00021
00022
00023 class rgrl_initializer
00024 : public rgrl_object
00025 {
00026 public:
00027 rgrl_initializer() : use_prior_scale_from_match_(true)
00028 { }
00029
00030 virtual ~rgrl_initializer();
00031
00032
00033
00034
00035
00036
00037
00038
00039 virtual bool next_initial( rgrl_view_sptr & view,
00040 rgrl_scale_sptr & prior_scale) = 0;
00041
00042
00043
00044 bool next_initial( rgrl_mask_sptr & from_image_roi,
00045 rgrl_mask_sptr & to_image_roi,
00046 rgrl_mask_box & current_region,
00047 rgrl_mask_box & global_region,
00048 rgrl_estimator_sptr & xform_estimator,
00049 rgrl_transformation_sptr & xform_estimate,
00050 unsigned & current_resolution,
00051 rgrl_scale_sptr & prior_scale);
00052
00053
00054
00055 bool next_initial( rgrl_mask_box & current_region,
00056 rgrl_estimator_sptr & xform_estimator,
00057 rgrl_transformation_sptr & xform_estimate,
00058 unsigned & current_resolution,
00059 rgrl_scale_sptr & prior_scale);
00060
00061
00062
00063 bool next_initial( rgrl_mask_box & current_region,
00064 rgrl_estimator_sptr & xform_estimator,
00065 rgrl_transformation_sptr & xform_estimate,
00066 rgrl_scale_sptr & prior_scale);
00067
00068
00069
00070
00071
00072 void set_prior_geometric_scale( double scale );
00073
00074
00075
00076 virtual int size() const = 0;
00077
00078
00079 rgrl_type_macro( rgrl_initializer, rgrl_object );
00080
00081 protected:
00082
00083 rgrl_scale_sptr enforce_prior_scale( rgrl_scale_sptr match_scale );
00084
00085 protected:
00086 rgrl_scale_sptr prior_scale_;
00087 bool use_prior_scale_from_match_;
00088 };
00089
00090 #endif // rgrl_initializer_h_