Fixed integer vs unsigned integer comparison in .cpp test source and
trailing whitespaces in source code
#define ABSCLIP(val,threshold) MIN(MAX((val),-(threshold)),(threshold))
namespace cv{namespace optim{
-
+
class AddFloatToCharScaled{
public:
AddFloatToCharScaled(float scale):_scale(scale){}
float x_new = x_curr[x] + tau*(p_curr[x].y - p_prev[x].y)-tau*s;
// X = X2 + theta*(X2 - X)
x_curr[x] = x_new + theta*(x_new - x_curr[x]);
-
+
for(x = 1; x < cols; x++ )
{
const int obs_num=5;
std::vector<cv::Mat> images(obs_num,cv::Mat());
- for(int i=0;i<images.size();i++){
+ for(int i=0;i<(int)images.size();i++){
make_noisy(img,images[i], 20, 0.02,rng);
//make_spotty(images[i],rng);
}