00001
00002 #include "brct_plane_sweeper_params.h"
00003
00004
00005
00006
00007
00008 #include <vcl_sstream.h>
00009 #include <vcl_iostream.h>
00010
00011
00012
00013
00014
00015 brct_plane_sweeper_params::
00016 brct_plane_sweeper_params(const brct_plane_sweeper_params& sp)
00017 : gevd_param_mixin()
00018 {
00019 InitParams(sp.zmin_,
00020 sp.zmax_,
00021 sp.nz_,
00022 sp.point_radius_,
00023 sp.corr_radius_,
00024 sp.corr_min_,
00025 sp.corr_max_,
00026 sp.corr_thresh_,
00027 sp.corr_sigma_,
00028 sp.intensity_thresh_,
00029 (sdet_harris_detector_params) sp.hdp_
00030 );
00031 }
00032
00033 brct_plane_sweeper_params::
00034 brct_plane_sweeper_params(const float zmin,
00035 const float zmax,
00036 const int nz,
00037 const float point_radius,
00038 const int corr_radius,
00039 const float corr_min,
00040 const float corr_max,
00041 const float corr_thresh,
00042 const float corr_sigma,
00043 const float intensity_thresh,
00044 const sdet_harris_detector_params& hdp
00045 )
00046 {
00047 InitParams( zmin, zmax, nz, point_radius, corr_radius, corr_min, corr_max,
00048 corr_thresh, corr_sigma, intensity_thresh, hdp);
00049 }
00050
00051 void brct_plane_sweeper_params::InitParams(float zmin,
00052 float zmax,
00053 int nz,
00054 float point_radius,
00055 int corr_radius,
00056 float corr_min,
00057 float corr_max,
00058 float corr_thresh,
00059 float corr_sigma,
00060 float intensity_thresh,
00061 const sdet_harris_detector_params& hdp
00062 )
00063 {
00064 zmin_ = zmin;
00065 zmax_ = zmax;
00066 nz_ = nz;
00067 point_radius_ = point_radius;
00068 corr_radius_ = corr_radius;
00069 corr_min_ = corr_min;
00070 corr_max_ = corr_max;
00071 corr_thresh_ = corr_thresh;
00072 corr_sigma_ = corr_sigma;
00073 intensity_thresh_ = intensity_thresh;
00074 hdp_ = hdp;
00075 }
00076
00077
00078
00079
00080
00081
00082
00083 bool brct_plane_sweeper_params::SanityCheck()
00084 {
00085 vcl_stringstream msg;
00086 bool valid = true;
00087
00088 msg << vcl_ends;
00089
00090 SetErrorMsg(msg.str().c_str());
00091 return valid;
00092 }
00093
00094 vcl_ostream& operator<<(vcl_ostream& os, const brct_plane_sweeper_params& sp)
00095 {
00096 return
00097 os << "brct_plane_sweeper_params:\n[---\n"
00098 << "zmin " << sp.zmin_ << vcl_endl
00099 << "zmax " << sp.zmax_ << vcl_endl
00100 << "N zplanes " << sp.nz_ << vcl_endl
00101 << "Point Match Radius " << sp.point_radius_ << vcl_endl
00102 << "Corr Window Radius " << sp.corr_radius_ << vcl_endl
00103 << "Corr Display Range Min " << sp.corr_min_ << vcl_endl
00104 << "Corr Display Range Max " << sp.corr_max_ << vcl_endl
00105 << "Coor Thresh " << sp.corr_thresh_ << vcl_endl
00106 << "Corr Smooth Sigma " << sp.corr_sigma_ << vcl_endl
00107 << "Intensity Thresh " << sp.intensity_thresh_ << vcl_endl
00108 << sp.hdp_
00109 << "---]" << vcl_endl;
00110 }