9 #ifndef BLOB_DETECTOR_INCLUDED
10 #define BLOB_DETECTOR_INCLUDED
109 return d <= b2.
size / 2.0;
122 return d <= b1.
size / 2.0;
146 std::set<Blob> blobs;
153 min_blob_size(minblobsize),
154 max_blob_size(maxblobsize),
169 min_blob_size(minblobsize),
170 max_blob_size(maxblobsize),
171 num_levels(numlevels),
179 min_blob_size(bd.min_blob_size),
180 max_blob_size(bd.max_blob_size),
181 num_levels(bd.num_levels),
182 threshold(bd.threshold),
193 min_blob_size = bd.min_blob_size;
194 max_blob_size = bd.max_blob_size;
195 num_levels = bd.num_levels;
196 threshold = bd.threshold;
218 return min_blob_size;
228 return max_blob_size;
250 typedef std::vector<std::vector<std::vector<double> > >
Vec_vec_vec;
int size
Definition: blob_detector.h:28
A simple class that represents a blob.
Definition: blob_detector.h:23
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
int get_octave_name(int idx) const
Definition: blob_gss.h:214
int m_octave_index
Definition: blob_detector.h:258
~Blob_detector()
Definition: blob_detector.h:246
int get_max_blob_size() const
Getter for the max blob size.
Definition: blob_detector.h:226
Vec_vec_vec matrix_vector_to_vvv(const Matrix_vector &mv)
Definition: blob_detector.cpp:35
Definition: blob_gss.h:11
r
Definition: APPgetLargeConnectedEdges.m:127
int col
Definition: blob_detector.h:27
Definition: blob_detector.h:255
std::vector< Matrix_vector > dog_scale_space(const GSS &gss)
Compute the difference of Gaussians (DoG) scale space.
Definition: blob_detector.cpp:13
Blob_detector(int minblobsize, int maxblobsize)
Construct a blob detector with the given max/min blob sizes.
Definition: blob_detector.h:152
Blob(int r, int c, int s)
Construct a blob in (r,c) of size s;.
Definition: blob_detector.h:33
bool blob_center_contained(Blob b1, Blob b2)
Tests whether a blob's center is contained in another blob.
Definition: blob_detector.h:106
Blob operator()(int scale_index, int scaled_row, int scaled_col)
Definition: blob_detector.h:276
std::vector< kjb::Matrix > Matrix_vector
Definition: blob_detector.h:125
for I
Definition: APPgetLargeConnectedEdges.m:141
Compute_blob(const GSS *gss, int octave_index)
Definition: blob_detector.h:260
int get_min_blob_size() const
Getter for the min blob size.
Definition: blob_detector.h:216
Blob_detector(const Blob_detector &bd)
Copy-ctor.
Definition: blob_detector.h:178
std::vector< std::vector< std::vector< double > > > Vec_vec_vec
Definition: blob_detector.h:250
bool blob_center_contains(Blob b1, Blob b2)
Tests whether a blob's center is contained in another blob.
Definition: blob_detector.h:119
bool operator==(const Blob &b1, const Blob &b2)
Compare two blobs; member-wise comparison.
Definition: blob_detector.h:70
const GSS * m_gss
Definition: blob_detector.h:257
const std::set< Blob > & operator()(const kjb::Image &I)
Applies this blob detector to the given image.
Definition: blob_detector.cpp:57
Blob_detector & operator=(const Blob_detector &bd)
Assignment operator. Member-wise assignment.
Definition: blob_detector.h:189
double sigma_at_indices(int i_o, int i_s) const
Definition: blob_gss.h:248
Code for a wrapper class around the C struct KJB_Image.
Wrapped version of the C struct KJB_image.
Definition: i_image.h:76
Compute_blob & operator=(const Compute_blob &cb)
Definition: blob_detector.h:265
const std::set< Blob > & get_blobs() const
Getter for the num_levels.
Definition: blob_detector.h:241
A blob detector class. Use operator() to apply to image.
Definition: blob_detector.h:139
int row
Definition: blob_detector.h:26
bool operator<(const Blob &b1, const Blob &b2)
Lexicographical less than comparison: size, row, col order.
Definition: blob_detector.h:79