public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Till Hofmann <thofmann@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/pcl] f44: Add patch to fix line fitting in SAC segmentation
Date: Thu, 25 Jun 2026 05:49:54 GMT [thread overview]
Message-ID: <178236659466.1.2305608311439312596.rpms-pcl-91893c0e4129@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pcl
Branch : f44
Commit : 91893c0e41299842a946168136f0b8d7799d0d09
Author : Till Hofmann <thofmann@fedoraproject.org>
Date : 2019-10-24T14:40:48+02:00
Stats : +41/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pcl/c/91893c0e41299842a946168136f0b8d7799d0d09?branch=f44
Log:
Add patch to fix line fitting in SAC segmentation
---
diff --git a/pcl-1.9.1-sacsegmentation.patch b/pcl-1.9.1-sacsegmentation.patch
new file mode 100644
index 0000000..9a225d4
--- /dev/null
+++ b/pcl-1.9.1-sacsegmentation.patch
@@ -0,0 +1,33 @@
+From 36c2bd6209f87dc7c6f56e2c0314e19f9cab95ec Mon Sep 17 00:00:00 2001
+From: Thorsten Harter <thorsten.harter@gmx.net>
+Date: Thu, 10 Jan 2019 15:54:52 +0100
+Subject: [PATCH] Fix regression in pcl::SACSegmentation line fitting
+
+pcl::SampleConsensusModelLine<PointT>::isSampleGood should check if the two sample points differ in one coordinate, not in all of them.
+---
+ .../include/pcl/sample_consensus/impl/sac_model_line.hpp | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/sample_consensus/include/pcl/sample_consensus/impl/sac_model_line.hpp b/sample_consensus/include/pcl/sample_consensus/impl/sac_model_line.hpp
+index 7c7fd7512a..9a8505d93c 100644
+--- a/sample_consensus/include/pcl/sample_consensus/impl/sac_model_line.hpp
++++ b/sample_consensus/include/pcl/sample_consensus/impl/sac_model_line.hpp
+@@ -49,13 +49,16 @@
+ template <typename PointT> bool
+ pcl::SampleConsensusModelLine<PointT>::isSampleGood (const std::vector<int> &samples) const
+ {
++ // Make sure that the two sample points are not identical
+ if (
+ (input_->points[samples[0]].x != input_->points[samples[1]].x)
+- &&
++ ||
+ (input_->points[samples[0]].y != input_->points[samples[1]].y)
+- &&
++ ||
+ (input_->points[samples[0]].z != input_->points[samples[1]].z))
++ {
+ return (true);
++ }
+
+ return (false);
+ }
diff --git a/pcl.spec b/pcl.spec
index 3f0e377..1415d51 100644
--- a/pcl.spec
+++ b/pcl.spec
@@ -2,7 +2,7 @@
Name: pcl
Version: 1.9.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Library for point cloud processing
License: BSD
URL: http://pointclouds.org/
@@ -24,6 +24,9 @@ Patch3: %{name}-1.7.2-doxyfix.patch
Patch4: %{name}-1.9.1-oom.patch
# Upstream patch to disable boost endian warnings
Patch5: %{name}-1.9.1-boostendian.patch
+# Upstream patch to fix SACSegmentation line fitting
+# https://github.com/PointCloudLibrary/pcl/pull/2767
+Patch6: %{name}-1.9.1-sacsegmentation.patch
# For plain building
BuildRequires: cmake, gcc-c++, boost-devel
@@ -86,6 +89,7 @@ Library.
%patch3 -p0 -b .doxyfix
%patch4 -p1 -b .oom
%patch5 -p1 -b .boostendian
+%patch6 -p1 -b .sacsegmentation
# Just to make it obvious we're not using any of these
rm -fr recognition/include/pcl/recognition/3rdparty/metslib
@@ -192,6 +196,9 @@ ARGS='-V' make -C build test || true
%doc build/doc/advanced/advanced
%changelog
+* Thu Oct 24 2019 Till Hofmann <thofmann@fedoraproject.org> - 1.9.1-5
+- Add patch to fix line fitting in SAC segmentation
+
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
reply other threads:[~2026-06-25 5:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178236659466.1.2305608311439312596.rpms-pcl-91893c0e4129@fedoraproject.org \
--to=thofmann@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox