Skip to content

Commit

Permalink
Fix build issue in vpImage::performLut()
Browse files Browse the repository at this point in the history
Issue reported by CI
vpImage_lut.h:176:43: error: out-of-line definition of 'performLut' does not match any declaration in 'vpImage<Type>'
template <class Type> void vpImage<Type>::performLut(const Type(&)[256], unsigned int)
  • Loading branch information
fspindle committed Nov 27, 2024
1 parent 2d07122 commit 2df7042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/core/include/visp3/core/vpImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,9 @@ template <class Type> class vpImage
friend std::ostream &operator<<(std::ostream &s, const vpImage<double> &I);

// Perform a look-up table transformation
static const unsigned int val_256 = 256;
void performLut(const Type(&lut)[val_256], unsigned int nbThreads = 1);
// static const unsigned int val_256 = 256;
// void performLut(const Type(&lut)[val_256], unsigned int nbThreads = 1); // Doesn't pass CI
void performLut(const Type(&lut)[256], unsigned int nbThreads = 1);

// Returns a new image that's a quarter size of the current image
void quarterSizeImage(vpImage<Type> &res) const;
Expand Down

0 comments on commit 2df7042

Please sign in to comment.