Skip to content

Commit

Permalink
Merge pull request #5985 from dzenanz/vcpkgLinkError
Browse files Browse the repository at this point in the history
fix pcl::squaredEuclideanDistance already defined in grabcut_2d.cpp.obj
  • Loading branch information
mvieth committed May 5, 2024
2 parents 9b041a0 + 7f07c87 commit cd086d6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -48,8 +48,8 @@ namespace pcl
{

template <>
float squaredEuclideanDistance (const pcl::segmentation::grabcut::Color &c1,
const pcl::segmentation::grabcut::Color &c2)
inline float squaredEuclideanDistance (const pcl::segmentation::grabcut::Color &c1,
const pcl::segmentation::grabcut::Color &c2)
{
return ((c1.r-c2.r)*(c1.r-c2.r)+(c1.g-c2.g)*(c1.g-c2.g)+(c1.b-c2.b)*(c1.b-c2.b));
}
Expand Down

0 comments on commit cd086d6

Please sign in to comment.