mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Minor fixes
Fixed integer vs unsigned integer comparison in .cpp test source and trailing whitespaces in source code
This commit is contained in:
parent
11fa0651c6
commit
1207cd132b
@ -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++ )
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user