Skip to content

Commit

Permalink
Fix virtual destructor being private, non const argument in vpColorHi…
Browse files Browse the repository at this point in the history
…stogram
  • Loading branch information
SamFlt committed Sep 23, 2024
1 parent 57793f3 commit 52267a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/tracker/rbt/include/visp3/rbt/vpColorHistogram.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class VISP_EXPORT vpColorHistogram

void build(const vpImage<vpRGBa> &image, const vpImage<bool> &mask);

void build(std::vector<unsigned int> &counts);
void build(const std::vector<unsigned int> &counts);

void merge(const vpColorHistogram &other, float alpha);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class VISP_EXPORT vpRBFeatureTrackerFactory : public vpDynamicFactory<vpRBFeatur
{
private:
vpRBFeatureTrackerFactory();
virtual ~vpRBFeatureTrackerFactory() = default;

public:
virtual ~vpRBFeatureTrackerFactory() = default;
static vpRBFeatureTrackerFactory &getFactory()
{
static vpRBFeatureTrackerFactory factory;
Expand Down
2 changes: 1 addition & 1 deletion modules/tracker/rbt/src/mask/vpColorHistogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void vpColorHistogram::build(const vpImage<vpRGBa> &image, const vpImage<bool> &
}
}

void vpColorHistogram::build(std::vector<unsigned int> &counts)
void vpColorHistogram::build(const std::vector<unsigned int> &counts)
{
if (m_probas.size() != counts.size()) {
throw vpException(vpException::dimensionError, "Number of bins are not the same");
Expand Down

0 comments on commit 52267a9

Please sign in to comment.