mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 11:47:49 +08:00
16 lines
804 B
Diff
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));
|
||
|
}
|