10#include <opencv2/core.hpp>
38 int peakDistanceWeight,
39 bool shouldIncludeMiddle);
66 friend std::ostream& operator<<(std::ostream& s,
const IntensityMap& m)
A class representing the intensity map generated from a row of a matrix, normalized to the range [0,...
int chosenMaximaIndex() const
Return the currently selected maxima index.
std::deque< std::pair< int, double > > sortedMaxima()
Return the row's maxima, sorted by intensity and weighted by distance from the center of the row.
void setChosenMaximaIndex(int index)
Select a maxima from the map by index.
cv::Mat_< double > intensities_
cv::Mat_< std::uint8_t > resliceData_
void incrementMaximaIndex()
Increase the maxima index by 1.
bool shouldIncludeMiddle_
IntensityMap(cv::Mat r, int stepSize, int peakDistanceWeight, bool shouldIncludeMiddle)
cv::Mat draw()
Generate a rastered intensity map for debug.
int peakRadius() const
Return the peak radius.
Segmentation algorithms and utilities library