vcpkg/ports/pcl/gh-5985-inline.patch
Kai Pastor fbc542fd5c
[pcl] Fix build issues, refresh patches (#37785)
Ported from  #37651.
Fix include dir in pc files.
Fix #37655.
2024-03-28 13:21:54 -07:00

16 lines
804 B
Diff

diff --git a/segmentation/include/pcl/segmentation/impl/grabcut_segmentation.hpp b/segmentation/include/pcl/segmentation/impl/grabcut_segmentation.hpp
index 2ef5fc27b16..5143080b6de 100644
--- a/segmentation/include/pcl/segmentation/impl/grabcut_segmentation.hpp
+++ b/segmentation/include/pcl/segmentation/impl/grabcut_segmentation.hpp
@@ -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));
}