Minor fixes

Fixed integer vs unsigned integer comparison in .cpp test source and
trailing whitespaces in source code
This commit is contained in:
Alex Leontiev 2013-09-01 07:11:31 +08:00
parent 11fa0651c6
commit 1207cd132b
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
#define ABSCLIP(val,threshold) MIN(MAX((val),-(threshold)),(threshold))
namespace cv{namespace optim{
class AddFloatToCharScaled{
public:
AddFloatToCharScaled(float scale):_scale(scale){}
@ -91,7 +91,7 @@ namespace cv{namespace optim{
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++ )
{

View File

@ -41,7 +41,7 @@ TEST(Optim_denoise_tvl1, regression_basic){
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);
}