example peak finders.
More...
|
| 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.
|
◆ 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_t | Hough plane content |
- Parameters
-
| plane | Hough plane to work on |
| index | peak center |
| xSize | number of cells around the peak in x direction |
| ySize | number of cells around the peak in y direction |
| summaryFunction | function 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_t | Hough plane content |
- Parameters
-
| plane | Hough plane to work on |
| config | algorithm configuration |
- Returns
- list of indices (pairs of numbers)