Skip to content

Commit

Permalink
Fix HistogramInterpolationMethod enum and PointInTPtr usages
Browse files Browse the repository at this point in the history
- gasd.h: HistogramInterpolationMethod enum usage in GASDEstimation constructor
- gasd.hpp: PointInTPtr usage in computeFeature method
  • Loading branch information
jpsml committed Jul 17, 2016
1 parent bd4dcf2 commit bcc8cfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions features/include/pcl/features/gasd.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ namespace pcl
color_half_grid_size_ (2),
color_hists_size_ (12),
use_color_ (true),
shape_interp_ (HistogramInterpolationMethod::INTERP_NONE),
color_interp_ (HistogramInterpolationMethod::INTERP_NONE)
shape_interp_ (INTERP_NONE),
color_interp_ (INTERP_NONE)
{
search_radius_ = 0;
k_ = 1;
Expand Down
12 changes: 6 additions & 6 deletions features/include/pcl/features/impl/gasd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace pcl
float zbin = z_scaled + half_grid_size;

// if using histogram interpolation, subtract 0.5 so samples with the central value of the bin have full weight in it
if (interp != HistogramInterpolationMethod::INTERP_NONE)
if (interp != INTERP_NONE)
{
xbin -= 0.5f;
ybin -= 0.5f;
Expand All @@ -152,7 +152,7 @@ namespace pcl
float v_xyz111, v_xyz110, v_xyz101, v_xyz100, v_xyz011, v_xyz010, v_xyz001, v_xyz000;

// if using histogram interpolation, compute trilinear interpolation
if (interp != HistogramInterpolationMethod::INTERP_NONE)
if (interp != INTERP_NONE)
{
xbin -= x0;
ybin -= y0;
Expand Down Expand Up @@ -183,14 +183,14 @@ namespace pcl
switch (interp)
{
default:
case HistogramInterpolationMethod::INTERP_NONE:
case INTERP_NONE:
{
// no interpolation
hists[grid_idx][h_idx] += hist_incr;
break;
}

case HistogramInterpolationMethod::INTERP_TRILINEAR:
case INTERP_TRILINEAR:
{
// trilinear interpolation
hists[grid_idx][h_idx] += v_xyz000;
Expand All @@ -204,7 +204,7 @@ namespace pcl
break;
}

case HistogramInterpolationMethod::INTERP_QUADRILINEAR:
case INTERP_QUADRILINEAR:
{
// quadrilinear interpolation
hbin -= h0;
Expand Down Expand Up @@ -280,7 +280,7 @@ namespace pcl
// compute alignment transform using reference frame
computeAlignmentTransform ();

pcl::PointCloud<PointInT>::Ptr shape_samples (new pcl::PointCloud<PointInT>);
PointInTPtr shape_samples (new pcl::PointCloud<PointInT>);
pcl::PointCloud<pcl::PointXYZHSV>::Ptr color_samples;

// align point cloud
Expand Down

0 comments on commit bcc8cfa

Please sign in to comment.