ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::HoughTransformUtils::PeakFinders Namespace Reference

example peak finders. More...

Classes

class  IslandsAroundMax
 Peak finder inspired by ATLAS muon reconstruction. More...
struct  IslandsAroundMaxConfig
 Configuration for the IslandsAroundMax peak finder. More...
class  LayerGuidedCombinatoric
 Peak finder inspired by ATLAS ITk event filter developments. More...
struct  LayerGuidedCombinatoricConfig
 configuration for the LayerGuidedCombinatoric peak finder More...
struct  SlidingWindowConfig
 Peak finder using sliding window algorithm. More...

Functions

template<typename identifier_t, typename pixel_value_t = unsigned char>
std::vector< pixel_value_t > hitsCountImage (const HoughPlane< identifier_t > &plane, typename HoughPlane< identifier_t >::Index index, std::size_t xSize, std::size_t ySize, const std::function< pixel_value_t(const HoughPlane< identifier_t > &, int, int)> &summaryFunction=[](const HoughPlane< identifier_t > &plane, int x, int y) { return static_cast< pixel_value_t >(plane.nHits(x, y));})
 Obtain an image around the peak.
template<typename identifier_t>
std::vector< typename HoughPlane< identifier_t >::Index > slidingWindowPeaks (const HoughPlane< identifier_t > &plane, const SlidingWindowConfig &config)
 Obtain peaks list in Hough space using Sliding Window algorithm.

Detailed Description

example peak finders.

Function Documentation

◆ hitsCountImage()

template<typename identifier_t, typename pixel_value_t = unsigned char>
std::vector< pixel_value_t > Acts::HoughTransformUtils::PeakFinders::hitsCountImage ( const HoughPlane< identifier_t > & plane,
typename HoughPlane< identifier_t >::Index index,
std::size_t xSize,
std::size_t ySize,
const std::function< pixel_value_t(const HoughPlane< identifier_t > &, int, int)> & summaryFunction = [](const HoughPlane< identifier_t > &plane, int x, int y) { return static_cast< pixel_value_t >(plane.nHits(x, y));} )

Obtain an image around the peak.

Template Parameters
identifier_tHough plane content
Parameters
planeHough plane to work on
indexpeak center
xSizenumber of cells around the peak in x direction
ySizenumber of cells around the peak in y direction
summaryFunctionfunction constructing pixel content, default is just number of hits in cell Other implementations may take into account layers
Returns
the vector with count of hits starting from lower left to upper right corner of rectangular window The "image" is always of the same size, if it would happen to be outside of Hough plane the content is padded with zeros

◆ slidingWindowPeaks()

template<typename identifier_t>
std::vector< typename HoughPlane< identifier_t >::Index > Acts::HoughTransformUtils::PeakFinders::slidingWindowPeaks ( const HoughPlane< identifier_t > & plane,
const SlidingWindowConfig & config )

Obtain peaks list in Hough space using Sliding Window algorithm.

Template Parameters
identifier_tHough plane content
Parameters
planeHough plane to work on
configalgorithm configuration
Returns
list of indices (pairs of numbers)