LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "CornerFinderAlg.h"
Public Member Functions | |
CornerFinderAlg (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) const |
TH2F const & | GetWireDataHist (unsigned int) const |
Private Member Functions | |
void | InitializeGeometry (geo::Geometry const &) |
void | create_image_histo (TH2F const &h_wire_data, TH2F &h_conversion) const |
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) |
std::vector< recob::EndPoint2D > | perform_maximum_suppression (TH2D const &h_cornerScore, std::vector< geo::WireID > wireIDs, geo::View_t view, TH2D &h_maxSuppress, int startx=0, int starty=0) const |
void | 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) const |
void | attach_feature_points (TH2F const &h_wire_data, std::vector< geo::WireID > const &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 > const &wireIDs, geo::View_t view, std::vector< recob::EndPoint2D > &) |
void | create_smaller_histos (geo::Geometry const &) |
Definition at line 33 of file CornerFinderAlg.h.
|
explicit |
Definition at line 40 of file CornerFinderAlg.cxx.
References 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().
|
private |
Definition at line 441 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 525 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 1145 of file CornerFinderAlg.cxx.
References fIntegral_bin_threshold, fIntegral_fraction_threshold, and line_integral().
Referenced by attach_feature_points_LineIntegralScore().
|
private |
Definition at line 959 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 677 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 609 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 260 of file CornerFinderAlg.cxx.
References fTrimming_buffer, fTrimming_threshold, fTrimming_totalThreshold, geo::GeometryCore::Iterate(), MF_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 165 of file CornerFinderAlg.cxx.
References attach_feature_points(), geo::GeometryCore::Iterate(), 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 178 of file CornerFinderAlg.cxx.
References attach_feature_points(), create_smaller_histos(), geo::GeometryCore::Iterate(), MF_LOG_DEBUG, WireData_IDs, and WireData_trimmed_histos.
void corner::CornerFinderAlg::get_feature_points_LineIntegralScore | ( | std::vector< recob::EndPoint2D > & | corner_vector, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 210 of file CornerFinderAlg.cxx.
References attach_feature_points_LineIntegralScore(), geo::GeometryCore::Iterate(), geo::GeometryCore::View(), WireData_histos, and WireData_IDs.
TH2F const & corner::CornerFinderAlg::GetWireDataHist | ( | unsigned int | i_plane | ) | const |
Definition at line 1183 of file CornerFinderAlg.cxx.
References WireData_histos.
Referenced by trkf::FeatureTracker::GetValidLines().
void corner::CornerFinderAlg::GrabWires | ( | std::vector< recob::Wire > const & | wireVec, |
geo::Geometry const & | my_geometry | ||
) |
Definition at line 98 of file CornerFinderAlg.cxx.
References geo::GeometryCore::ChannelToWire(), fCalDataModuleLabel, InitializeGeometry(), geo::GeometryCore::Iterate(), 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 trkf::FeatureTracker::produce().
|
private |
Definition at line 71 of file CornerFinderAlg.cxx.
References geo::GeometryCore::Iterate(), 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 | ||
) | const |
Definition at line 1084 of file CornerFinderAlg.cxx.
References util::abs(), e, lar_content::minmax(), x1, x2, y1, and y2.
Referenced by calculate_line_integral_score(), and trkf::FeatureTracker::GetValidLines().
|
private |
Definition at line 1032 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().
|
private |
Definition at line 92 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 62 of file CornerFinderAlg.h.
Referenced by GrabWires().
|
private |
Definition at line 63 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_image_histo().
|
private |
Definition at line 70 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), attach_feature_points_LineIntegralScore(), CornerFinderAlg(), and perform_maximum_suppression().
|
private |
Definition at line 71 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), attach_feature_points_LineIntegralScore(), CornerFinderAlg(), and perform_maximum_suppression().
|
private |
Definition at line 64 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_image_histo().
|
private |
Definition at line 68 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_image_histo().
|
private |
Definition at line 69 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_image_histo().
|
private |
Definition at line 77 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_cornerScore_histogram().
|
private |
Definition at line 79 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_cornerScore_histogram().
|
private |
Definition at line 76 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_cornerScore_histogram().
|
private |
Definition at line 78 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_cornerScore_histogram().
|
private |
Definition at line 74 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg().
|
private |
Definition at line 75 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_derivative_histograms().
|
private |
Definition at line 72 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_derivative_histograms().
|
private |
Definition at line 73 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_derivative_histograms().
|
private |
Definition at line 82 of file CornerFinderAlg.h.
Referenced by calculate_line_integral_score(), and CornerFinderAlg().
|
private |
Definition at line 83 of file CornerFinderAlg.h.
Referenced by calculate_line_integral_score(), and CornerFinderAlg().
|
private |
Definition at line 80 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and perform_maximum_suppression().
|
private |
Definition at line 81 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and perform_maximum_suppression().
|
private |
Definition at line 66 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_smaller_histos().
|
private |
Definition at line 65 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_smaller_histos().
|
private |
Definition at line 67 of file CornerFinderAlg.h.
Referenced by CornerFinderAlg(), and create_smaller_histos().
|
private |
Definition at line 93 of file CornerFinderAlg.h.
Referenced by attach_feature_points(), and attach_feature_points_LineIntegralScore().
|
private |
Definition at line 86 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), get_feature_points(), get_feature_points_LineIntegralScore(), GetWireDataHist(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 87 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 88 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 90 of file CornerFinderAlg.h.
Referenced by get_feature_points(), get_feature_points_fast(), get_feature_points_LineIntegralScore(), GrabWires(), and InitializeGeometry().
|
private |
Definition at line 89 of file CornerFinderAlg.h.
Referenced by create_smaller_histos(), get_feature_points_fast(), and InitializeGeometry().