Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 698562
Collapse All | Expand All

(-)a/sample_consensus/include/pcl/sample_consensus/impl/sac_model_line.hpp (-2 / +5 lines)
Lines 49-61 Link Here
49
template <typename PointT> bool
49
template <typename PointT> bool
50
pcl::SampleConsensusModelLine<PointT>::isSampleGood (const std::vector<int> &samples) const
50
pcl::SampleConsensusModelLine<PointT>::isSampleGood (const std::vector<int> &samples) const
51
{
51
{
52
  // Make sure that the two sample points are not identical
52
  if (
53
  if (
53
      (input_->points[samples[0]].x != input_->points[samples[1]].x)
54
      (input_->points[samples[0]].x != input_->points[samples[1]].x)
54
    &&
55
    ||
55
      (input_->points[samples[0]].y != input_->points[samples[1]].y)
56
      (input_->points[samples[0]].y != input_->points[samples[1]].y)
56
    &&
57
    ||
57
      (input_->points[samples[0]].z != input_->points[samples[1]].z))
58
      (input_->points[samples[0]].z != input_->points[samples[1]].z))
59
  {
58
    return (true);
60
    return (true);
61
  }
59
62
60
  return (false);
63
  return (false);
61
}
64
}

Return to bug 698562