diff --git a/src/filter_grid_decimation/grid_decimationFilter.cpp b/src/filter_grid_decimation/grid_decimationFilter.cpp index 69a9e28..bc771f4 100755 --- a/src/filter_grid_decimation/grid_decimationFilter.cpp +++ b/src/filter_grid_decimation/grid_decimationFilter.cpp @@ -81,8 +81,8 @@ void GridDecimationFilter::processOne(BOX2D bounds, PointRef& point, PointViewPt double y = point.getFieldAs(Dimension::Id::Y); int id = point.getFieldAs(Dimension::Id::PointId); - double d_width_pt = std::floor((x - bounds.minx) / m_args->m_edgeLength) + 1; - double d_height_pt = std::floor((y - bounds.miny) / m_args->m_edgeLength) + 1; + double d_width_pt = std::floor((x - bounds.minx) / m_args->m_edgeLength); + double d_height_pt = std::floor((y - bounds.miny) / m_args->m_edgeLength); int width = static_cast(d_width_pt); int height = static_cast(d_height_pt);