LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "CornerFinderAlg.h"
Public Member Functions | |
CornerFinderAlg (fhicl::ParameterSet const &pset) | |
virtual | ~CornerFinderAlg () |
void | reconfigure (fhicl::ParameterSet const &pset) |
void | GrabWires (std::vector< recob::Wire > const &wireVec, geo::Geometry const &) |
void | get_feature_points (std::vector< recob::EndPoint2D > &, geo::Geometry const &) |
void | get_feature_points_LineIntegralScore (std::vector< recob::EndPoint2D > &, geo::Geometry const &) |
void | get_feature_points_fast (std::vector< recob::EndPoint2D > &, geo::Geometry const &) |
float | line_integral (TH2F const &hist, int x1, float y1, int x2, float y2, float threshold) |
std::vector< float > | line_integrals (trkf::BezierTrack &, size_t Steps, float threshold) |
TH2F const & | GetWireDataHist (unsigned int) |
TH2F const & | GetConversionHist (unsigned int) |
TH2F const & | GetDerivativeXHist (unsigned int) |
TH2F const & | GetDerivativeYHist (unsigned int) |
TH2D const & | GetCornerScoreHist (unsigned int) |
TH2D const & | GetMaxSuppressHist (unsigned int) |
Private Member Functions | |
void | CleanCornerFinderAlg () |
void | InitializeGeometry (geo::Geometry const &) |
void | create_image_histo (TH2F const &h_wire_data, TH2F &h_conversion) |
void | create_derivative_histograms (TH2F const &h_conversion, TH2F &h_derivative_x, TH2F &h_derivative_y) |
void | create_cornerScore_histogram (TH2F const &h_derivative_x, TH2F const &h_derivative_y, TH2D &h_cornerScore) |
size_t | perform_maximum_suppression (TH2D const &h_cornerScore, std::vector< recob::EndPoint2D > &corner_vector, std::vector< geo::WireID > wireIDs, geo::View_t view, TH2D &h_maxSuppress, int startx=0, int starty=0) |
size_t | calculate_line_integral_score (TH2F const &h_wire_data, std::vector< recob::EndPoint2D > const &corner_vector, std::vector< recob::EndPoint2D > &corner_lineIntegralScore_vector, TH2F &h_lineIntegralScore) |
void | attach_feature_points (TH2F const &h_wire_data, std::vector< geo::WireID > wireIDs, geo::View_t view, std::vector< recob::EndPoint2D > &, int startx=0, int starty=0) |
void | attach_feature_points_LineIntegralScore (TH2F const &h_wire_data, std::vector< geo::WireID > wireIDs, geo::View_t view, std::vector< recob::EndPoint2D > &) |
void | create_smaller_histos (geo::Geometry const &) |
void | remove_duplicates (std::vector< recob::EndPoint2D > &) |
Definition at line 29 of file CornerFinderAlg.h.
|
explicit |
Definition at line 45 of file CornerFinderAlg.cxx.
References reconfigure().
|
virtual |
Definition at line 50 of file CornerFinderAlg.cxx.
References CleanCornerFinderAlg().
|
private |
Definition at line 509 of file CornerFinderAlg.cxx.
References create_cornerScore_histogram(), create_derivative_histograms(), create_image_histo(), event_number, fConversion_bins_per_input_x, fConversion_bins_per_input_y, perform_maximum_suppression(), run_number, x_max, and x_min.
Referenced by get_feature_points(), and get_feature_points_fast().
|
private |
Definition at line 563 of file CornerFinderAlg.cxx.
References calculate_line_integral_score(), create_cornerScore_histogram(), create_derivative_histograms(), create_image_histo(), event_number, fConversion_bins_per_input_x, fConversion_bins_per_input_y, perform_maximum_suppression(), run_number, x_max, and x_min.
Referenced by get_feature_points_LineIntegralScore().
|
private |
Definition at line 1152 of file CornerFinderAlg.cxx.
References fIntegral_bin_threshold, fIntegral_fraction_threshold, and line_integral().
Referenced by attach_feature_points_LineIntegralScore().
|
private |
Definition at line 55 of file CornerFinderAlg.cxx.
References WireData_histos, WireData_histos_ProjectionX, WireData_histos_ProjectionY, WireData_IDs, and WireData_trimmed_histos.
Referenced by InitializeGeometry(), and ~CornerFinderAlg().
|
private |
Definition at line 931 of file CornerFinderAlg.cxx.
References fCornerScore_algorithm, fCornerScore_Harris_kappa, fCornerScore_neighborhood, and fCornerScore_Noble_epsilon.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 686 of file CornerFinderAlg.cxx.
References fDerivative_BlurNeighborhood, fDerivative_method, and fDerivative_neighborhood.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 626 of file CornerFinderAlg.cxx.
References fConversion_algorithm, fConversion_func, fConversion_func_neighborhood, and fConversion_threshold.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 330 of file CornerFinderAlg.cxx.
References fTrimming_buffer, fTrimming_threshold, fTrimming_totalThreshold, geo::GeometryCore::IteratePlaneIDs(), LOG_DEBUG, WireData_histos, WireData_histos_ProjectionX, WireData_histos_ProjectionY, and WireData_trimmed_histos.
Referenced by get_feature_points_fast().
void corner::CornerFinderAlg::get_feature_points | ( | std::vector< recob::EndPoint2D > & | corner_vector, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 201 of file CornerFinderAlg.cxx.
References attach_feature_points(), geo::GeometryCore::IteratePlaneIDs(), geo::GeometryCore::View(), WireData_histos, and WireData_IDs.
Referenced by trkf::FeatureTracker::produce().
void corner::CornerFinderAlg::get_feature_points_fast | ( | std::vector< recob::EndPoint2D > & | corner_vector, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 217 of file CornerFinderAlg.cxx.
References attach_feature_points(), create_smaller_histos(), geo::GeometryCore::Cryostat(), LOG_DEBUG, geo::GeometryCore::Ncryostats(), geo::CryostatGeo::NTPC(), geo::TPCGeo::Plane(), geo::CryostatGeo::TPC(), geo::PlaneGeo::View(), WireData_IDs, and WireData_trimmed_histos.
Referenced by vertex::CornerFinder::produce().
void corner::CornerFinderAlg::get_feature_points_LineIntegralScore | ( | std::vector< recob::EndPoint2D > & | corner_vector, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 253 of file CornerFinderAlg.cxx.
References attach_feature_points_LineIntegralScore(), geo::GeometryCore::IteratePlaneIDs(), geo::GeometryCore::View(), WireData_histos, and WireData_IDs.
TH2F const& corner::CornerFinderAlg::GetConversionHist | ( | unsigned | int | ) |
TH2D const& corner::CornerFinderAlg::GetCornerScoreHist | ( | unsigned | int | ) |
TH2F const& corner::CornerFinderAlg::GetDerivativeXHist | ( | unsigned | int | ) |
TH2F const& corner::CornerFinderAlg::GetDerivativeYHist | ( | unsigned | int | ) |
TH2D const& corner::CornerFinderAlg::GetMaxSuppressHist | ( | unsigned | int | ) |
TH2F const & corner::CornerFinderAlg::GetWireDataHist | ( | unsigned int | i_plane | ) |
Definition at line 1197 of file CornerFinderAlg.cxx.
References WireData_histos.
Referenced by trkf::FeatureTracker::CheckSeedLineInt(), and trkf::FeatureTracker::GetValidLines().
void corner::CornerFinderAlg::GrabWires | ( | std::vector< recob::Wire > const & | wireVec, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 139 of file CornerFinderAlg.cxx.
References geo::GeometryCore::ChannelToWire(), fCalDataModuleLabel, InitializeGeometry(), geo::GeometryCore::Nplanes(), geo::GeometryCore::Nwires(), geo::PlaneID::Plane, geo::WireID::Wire, WireData_histos, WireData_histos_ProjectionX, WireData_histos_ProjectionY, and WireData_IDs.
Referenced by vertex::CornerFinder::produce(), and trkf::FeatureTracker::produce().
|
private |
Definition at line 113 of file CornerFinderAlg.cxx.
References CleanCornerFinderAlg(), fConversion_histos, fCornerScore_histos, fDerivativeX_histos, fDerivativeY_histos, fMaxSuppress_histos, geo::GeometryCore::Nplanes(), geo::GeometryCore::Nwires(), WireData_histos, WireData_histos_ProjectionX, WireData_histos_ProjectionY, WireData_IDs, and WireData_trimmed_histos.
Referenced by GrabWires().
float corner::CornerFinderAlg::line_integral | ( | TH2F const & | hist, |
int | x1, | ||
float | y1, | ||
int | x2, | ||
float | y2, | ||
float | threshold | ||
) |
Definition at line 1053 of file CornerFinderAlg.cxx.
References e, tmp, x1, x2, y1, and y2.
Referenced by calculate_line_integral_score(), trkf::FeatureTracker::CheckSeedLineInt(), and trkf::FeatureTracker::GetValidLines().
std::vector< float > corner::CornerFinderAlg::line_integrals | ( | trkf::BezierTrack & | TheTrack, |
size_t | Steps, | ||
float | threshold | ||
) |
Definition at line 1123 of file CornerFinderAlg.cxx.
References trkf::BezierTrack::GetProjectedPointUVWT(), s, WireData_histos, x, and y.
Referenced by trkf::FeatureTracker::GetConnectionMap().
|
private |
Definition at line 992 of file CornerFinderAlg.cxx.
References fConversion_bins_per_input_x, fConversion_bins_per_input_y, fMaxSuppress_neighborhood, and fMaxSuppress_threshold.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
void corner::CornerFinderAlg::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 78 of file CornerFinderAlg.cxx.
References fCalDataModuleLabel, fConversion_algorithm, fConversion_bins_per_input_x, fConversion_bins_per_input_y, fConversion_func, fConversion_func_neighborhood, fConversion_threshold, fCornerScore_algorithm, fCornerScore_Harris_kappa, fCornerScore_neighborhood, fCornerScore_Noble_epsilon, fDerivative_BlurFunc, fDerivative_BlurNeighborhood, fDerivative_method, fDerivative_neighborhood, fIntegral_bin_threshold, fIntegral_fraction_threshold, fMaxSuppress_neighborhood, fMaxSuppress_threshold, fTrimming_buffer, fTrimming_threshold, fTrimming_totalThreshold, and fhicl::ParameterSet::get().
Referenced by CornerFinderAlg(), and vertex::CornerFinder::reconfigure().
|
private |
Definition at line 268 of file CornerFinderAlg.cxx.
|
private |
Definition at line 105 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 70 of file CornerFinderAlg.h.
Referenced by GrabWires(), and reconfigure().
|
private |
Definition at line 71 of file CornerFinderAlg.h.
Referenced by create_image_histo(), and reconfigure().
|
private |
Definition at line 78 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), attach_feature_points_LineIntegralScore(), perform_maximum_suppression(), and reconfigure().
|
private |
Definition at line 79 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), attach_feature_points_LineIntegralScore(), perform_maximum_suppression(), and reconfigure().
|
private |
Definition at line 72 of file CornerFinderAlg.h.
Referenced by create_image_histo(), and reconfigure().
|
private |
Definition at line 76 of file CornerFinderAlg.h.
Referenced by create_image_histo(), and reconfigure().
|
private |
Definition at line 99 of file CornerFinderAlg.h.
Referenced by InitializeGeometry().
|
private |
Definition at line 77 of file CornerFinderAlg.h.
Referenced by create_image_histo(), and reconfigure().
|
private |
Definition at line 85 of file CornerFinderAlg.h.
Referenced by create_cornerScore_histogram(), and reconfigure().
|
private |
Definition at line 87 of file CornerFinderAlg.h.
Referenced by create_cornerScore_histogram(), and reconfigure().
|
private |
Definition at line 102 of file CornerFinderAlg.h.
Referenced by InitializeGeometry().
|
private |
Definition at line 84 of file CornerFinderAlg.h.
Referenced by create_cornerScore_histogram(), and reconfigure().
|
private |
Definition at line 86 of file CornerFinderAlg.h.
Referenced by create_cornerScore_histogram(), and reconfigure().
|
private |
Definition at line 82 of file CornerFinderAlg.h.
Referenced by reconfigure().
|
private |
Definition at line 83 of file CornerFinderAlg.h.
Referenced by create_derivative_histograms(), and reconfigure().
|
private |
Definition at line 80 of file CornerFinderAlg.h.
Referenced by create_derivative_histograms(), and reconfigure().
|
private |
Definition at line 81 of file CornerFinderAlg.h.
Referenced by create_derivative_histograms(), and reconfigure().
|
private |
Definition at line 100 of file CornerFinderAlg.h.
Referenced by InitializeGeometry().
|
private |
Definition at line 101 of file CornerFinderAlg.h.
Referenced by InitializeGeometry().
|
private |
Definition at line 90 of file CornerFinderAlg.h.
Referenced by calculate_line_integral_score(), and reconfigure().
|
private |
Definition at line 91 of file CornerFinderAlg.h.
Referenced by calculate_line_integral_score(), and reconfigure().
|
private |
Definition at line 103 of file CornerFinderAlg.h.
Referenced by InitializeGeometry().
|
private |
Definition at line 88 of file CornerFinderAlg.h.
Referenced by perform_maximum_suppression(), and reconfigure().
|
private |
Definition at line 89 of file CornerFinderAlg.h.
Referenced by perform_maximum_suppression(), and reconfigure().
|
private |
Definition at line 74 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), and reconfigure().
|
private |
Definition at line 73 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), and reconfigure().
|
private |
Definition at line 75 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), and reconfigure().
|
private |
Definition at line 106 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 94 of file CornerFinderAlg.h.
Referenced by CleanCornerFinderAlg(), create_smaller_histos(), get_feature_points(), get_feature_points_LineIntegralScore(), GetWireDataHist(), GrabWires(), InitializeGeometry(), and line_integrals().
|
private |
Definition at line 95 of file CornerFinderAlg.h.
Referenced by CleanCornerFinderAlg(), create_smaller_histos(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 96 of file CornerFinderAlg.h.
Referenced by CleanCornerFinderAlg(), create_smaller_histos(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 98 of file CornerFinderAlg.h.
Referenced by CleanCornerFinderAlg(), get_feature_points(), get_feature_points_fast(), get_feature_points_LineIntegralScore(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 97 of file CornerFinderAlg.h.
Referenced by CleanCornerFinderAlg(), create_smaller_histos(), get_feature_points_fast(), and InitializeGeometry().