Skip to content

Commit 7776211

Browse files
committed
All needed fixes
1 parent 4ab6d4c commit 7776211

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/numerics/APRNumerics.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class APRNumerics {
1212

1313
public:
1414
template<typename T>
15-
static void compute_gradient_vector(APR<T> apr,ExtraParticleData<std::vector<float>>& gradient,const bool normalize = true,const std::vector<float> delta = {1.0f,1.0f,1.0f}){
15+
static void compute_gradient_vector(APR<T> &apr,ExtraParticleData<std::vector<float>>& gradient,const bool normalize = true,const std::vector<float> delta = {1.0f,1.0f,1.0f}){
1616

1717

1818
APRTimer timer;
@@ -96,7 +96,7 @@ class APRNumerics {
9696
}
9797

9898
template<typename T,typename S,typename U>
99-
void seperable_smooth_filter(APR<T> apr,const ExtraParticleData<S>& input_data,ExtraParticleData<U>& output_data,const std::vector<float>& filter,unsigned int repeats = 1){
99+
void seperable_smooth_filter(APR<T> &apr,const ExtraParticleData<S>& input_data,ExtraParticleData<U>& output_data,const std::vector<float>& filter,unsigned int repeats = 1){
100100

101101
output_data.init(apr);
102102

@@ -115,7 +115,7 @@ class APRNumerics {
115115

116116

117117
template<typename T,typename S,typename U>
118-
void face_neighbour_filter(APR<T> apr,ExtraParticleData<S>& input_data,ExtraParticleData<U>& output_data,const std::vector<float>& filter,const int direction){
118+
void face_neighbour_filter(APR<T> &apr,ExtraParticleData<S>& input_data,ExtraParticleData<U>& output_data,const std::vector<float>& filter,const int direction){
119119

120120
std::vector<uint8_t> faces;
121121
if(direction == 0){

test/ComputeGradientTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "algorithm/ComputeBsplineRecursiveFilterCuda.h"
1111
#include "algorithm/ComputeInverseCubicBsplineCuda.h"
1212
#include <random>
13+
#include "data_structures/APR/APR.hpp"
1314
#include "algorithm/APRConverter.hpp"
1415

1516
namespace {

test/LocalIntensityScaleTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "data_structures/Mesh/PixelData.hpp"
77
#include "algorithm/LocalIntensityScale.hpp"
88
#include "algorithm/LocalIntensityScaleCuda.h"
9+
#include "data_structures/APR/APR.hpp"
910
#include "algorithm/APRConverter.hpp"
1011
#include "TestTools.hpp"
1112

0 commit comments

Comments
 (0)