11 #ifndef BLOB_SPOT_DETECTOR_H_INCLUDED
12 #define BLOB_SPOT_DETECTOR_H_INCLUDED
42 Matrix m_background, m_thresholds;
43 int m_min_brightness, m_min_size, m_max_size;
46 mutable std::vector<Pair_vector> spot_coordinates;
52 m_background.
swap(sd.m_background);
53 m_thresholds.
swap(sd.m_thresholds);
54 swap(m_min_brightness, sd.m_min_brightness);
55 swap(m_min_size, sd.m_min_size);
56 swap(m_max_size, sd.m_max_size);
57 swap(m_similarity, sd.m_similarity);
58 spot_centroids.swap(sd.spot_centroids);
59 spot_coordinates.swap(sd.spot_coordinates);
102 m_background(background),
103 m_thresholds(thresholds),
104 m_min_brightness(min_brightness),
105 m_min_size(min_size),
106 m_max_size(max_size),
107 m_similarity(similarity)
141 Matrix(num_rows, num_cols, background),
142 Matrix(num_rows, num_cols, threshold),
168 return spot_coordinates;
179 return spot_centroids;
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
const std::vector< Pair_vector > & get_spot_coordinates() const
Retrieves the spots computed in the last call to operator().
Definition: blob_spot_detector.h:166
const Centroid_set & get_spot_centroids() const
Retrieves the spot centroids computed in last operator() call.
Definition: blob_spot_detector.h:177
A spot detector functor, comparable to a blob detector.
Definition: blob_spot_detector.h:35
void swap(kjb::Gsl_Multimin_fdf &m1, kjb::Gsl_Multimin_fdf &m2)
Swap two wrapped multimin objects.
Definition: gsl_multimin.h:693
const Centroid_set & operator()(const Image &) const
Applies this spot detector to the given image.
Definition: blob_spot_detector.cpp:40
Spot_detector(const Matrix &background, const Matrix &thresholds, int min_brightness, int min_size, int max_size, double similarity)
Construct a spot detector with the given parameters.
Definition: blob_spot_detector.h:94
std::vector< std::pair< int, int > > Pair_vector
Definition: blob_spot_detector.h:39
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Code for a wrapper class around the C struct KJB_Image.
Wrapped version of the C struct KJB_image.
Definition: i_image.h:76
void swap(Matrix &other)
Swap the representations of two matrices.
Definition: m_matrix.h:532
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
std::vector< Vector > Centroid_set
Definition: blob_spot_detector.h:38