Skip to content

Commit b885d28

Browse files
committed
fixed test failures; removed extra whitespaces
1 parent 7297f02 commit b885d28

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

modules/ximgproc/include/opencv2/ximgproc.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ The function transforms a binary blob image into a skeletized form using the tec
123123
CV_EXPORTS_W void thinning( InputArray src, OutputArray dst, int thinningType = THINNING_ZHANGSUEN);
124124

125125
/** @brief Performs anisotropic diffusian on an image.
126-
126+
127127
The function applies Perona-Malik anisotropic diffusion to an image. This is the solution to the partial differential equation:
128-
128+
129129
\f[{\frac {\partial I}{\partial t}}={\mathrm {div}}\left(c(x,y,t)\nabla I\right)=\nabla c\cdot \nabla I+c(x,y,t)\Delta I\f]
130-
130+
131131
Suggested functions for c(x,y,t) are:
132-
132+
133133
\f[c\left(\|\nabla I\|\right)=e^{{-\left(\|\nabla I\|/K\right)^{2}}}\f]
134-
134+
135135
or
136-
136+
137137
\f[ c\left(\|\nabla I\|\right)={\frac {1}{1+\left({\frac {\|\nabla I\|}{K}}\right)^{2}}} \f]
138-
138+
139139
@param src Grayscale Source image.
140140
@param dst Destination image of the same size and the same number of channels as src .
141141
@param alpha The amount of time to step forward by on each iteration (normally, it's between 0 and 1).

modules/ximgproc/src/anisodiff.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class ADBody : public ParallelLoopBody
169169
}
170170
j *= 3;
171171
#endif
172-
172+
173173
for( ; j < cols*cn; j += cn )
174174
{
175175
int c0 = psrc0[j], c1 = psrc0[j+1], c2 = psrc0[j+2];
@@ -192,7 +192,7 @@ class ADBody : public ParallelLoopBody
192192
}
193193
}
194194
}
195-
195+
196196
const Mat* src;
197197
Mat* dst;
198198
const float* exptab_;
@@ -283,12 +283,11 @@ void anisotropicDiffusion(InputArray src_, OutputArray dst_, float alpha, float
283283

284284
ADBody body(&src, &dst, exptab, alpha);
285285
parallel_for_(Range(0, rows), body, 8);
286-
286+
287287
std::swap(temp0, temp1);
288288
std::swap(temp0x, temp1x);
289289
}
290290
}
291291

292292
}
293293
}
294-

modules/ximgproc/test/test_anisodiff.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using namespace std;
55

66
TEST(ximgproc_AnisotropicDiffusion, regression)
77
{
8-
string folder = string(cvtest::TS::ptr()->get_data_path()) + "shared/";
8+
string folder = string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/";
99
string original_path = folder + "fruits.png";
1010

1111
Mat original = imread(original_path, IMREAD_COLOR);

0 commit comments

Comments
 (0)