Skip to content

Commit

Permalink
source typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz committed Feb 26, 2018
1 parent 844babb commit c056003
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gpu/features/src/vfh.cu
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ void pcl::device::VFHEstimationImpl::compute(DeviceArray<VFHSignature308>& featu
cudaSafeCall( cudaGetDeviceProperties(&prop, device) );

int total = static_cast<int> (indices.empty() ? points.size() : indices.size());
int total_lenght_in_blocks = (total + VfhDevice::CTA_SIZE - 1) / VfhDevice::CTA_SIZE;
int total_length_in_blocks = (total + VfhDevice::CTA_SIZE - 1) / VfhDevice::CTA_SIZE;

int block = VfhDevice::CTA_SIZE;
int grid = min(total_lenght_in_blocks, prop.multiProcessorCount * prop.maxThreadsPerMultiProcessor / VfhDevice::CTA_SIZE);
int grid = min(total_length_in_blocks, prop.multiProcessorCount * prop.maxThreadsPerMultiProcessor / VfhDevice::CTA_SIZE);

DeviceArray2D<float> global_buffer(grid, VfhDevice::FSize);

Expand Down
6 changes: 3 additions & 3 deletions gpu/features/test/data_source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
*/


#ifndef PCL_GPU_FEATURES_TEST_DATA_SORUCE_HPP_
#define PCL_GPU_FEATURES_TEST_DATA_SORUCE_HPP_
#ifndef PCL_GPU_FEATURES_TEST_DATA_SOURCE_HPP_
#define PCL_GPU_FEATURES_TEST_DATA_SOURCE_HPP_

#include<string>

Expand Down Expand Up @@ -210,4 +210,4 @@ namespace pcl
}
}

#endif /* PCL_GPU_FEATURES_TEST_DATA_SORUCE_HPP_ */
#endif /* PCL_GPU_FEATURES_TEST_DATA_SOURCE_HPP_ */
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace pcl
}

/** \brief Check if shifting needs to be performed, returns true if so.
Shifting is considered needed if the target point is farther than distance_treshold_.
Shifting is considered needed if the target point is farther than distance_threshold_.
The target point is located at distance_camera_point on the local Z axis of the camera.
* \param[in] volume pointer to the TSDFVolume living in GPU
* \param[in] cam_pose global pose of the camera in the world
Expand Down

0 comments on commit c056003

Please sign in to comment.