Skip to content

Commit b56935a

Browse files
author
joeljonsson
committed
fix to silence a few warnings
1 parent 5a2a6de commit b56935a

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/algorithm/APRConverter.hpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,18 @@ inline bool APRConverter<ImageType>::get_apr_method_from_file(APR<ImageType> &aA
139139
for (size_t i = 0; i < inputImage.mesh.size(); ++i) {
140140
inputImage.mesh[i] = (inputImage.mesh[i] - mm.min) * maxValue / (mm.max - mm.min);
141141
}
142-
}
143142

144-
//normalize the input parameters if required
145-
if(par.Ip_th!=-1){
146-
std::cout << "Scaled input intensity threshold" << std::endl;
147-
par.Ip_th = (par.Ip_th - mm.min)* maxValue / (mm.max - mm.min);
148-
}
143+
//normalize the input parameters if required
144+
if(par.Ip_th!=-1){
145+
std::cout << "Scaled input intensity threshold" << std::endl;
146+
par.Ip_th = (par.Ip_th - mm.min)* maxValue / (mm.max - mm.min);
147+
}
149148

150-
if(par.min_signal!=-1){
151-
std::cout << "Scaled input min signal threshold" << std::endl;
152-
par.min_signal = (par.min_signal)* maxValue / (mm.max - mm.min);
149+
if(par.min_signal!=-1){
150+
std::cout << "Scaled input min signal threshold" << std::endl;
151+
par.min_signal = (par.min_signal)* maxValue / (mm.max - mm.min);
152+
}
153153
}
154-
155154
}
156155

157156

0 commit comments

Comments
 (0)