Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
3f7cca4a
Commit
3f7cca4a
authored
Aug 22, 2014
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 'xphoto' and 'text' build on MSVC 2008
parent
12e1e11d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
erfilter.cpp
modules/text/src/erfilter.cpp
+1
-1
dct_image_denoising.cpp
modules/xphoto/src/dct_image_denoising.cpp
+3
-3
simple_color_balance.cpp
modules/xphoto/src/simple_color_balance.cpp
+1
-1
No files found.
modules/text/src/erfilter.cpp
View file @
3f7cca4a
...
...
@@ -3494,7 +3494,7 @@ bool isValidPair(Mat &grey, Mat &lab, Mat &mask, vector<Mat> &channels, vector<
Point
center_i
(
i
->
rect
.
x
+
i
->
rect
.
width
/
2
,
i
->
rect
.
y
+
i
->
rect
.
height
/
2
);
Point
center_j
(
j
->
rect
.
x
+
j
->
rect
.
width
/
2
,
j
->
rect
.
y
+
j
->
rect
.
height
/
2
);
float
centroid_angle
=
(
float
)
atan2
(
center_j
.
y
-
center_i
.
y
,
center_j
.
x
-
center_i
.
x
);
float
centroid_angle
=
(
float
)
atan2
(
(
float
)(
center_j
.
y
-
center_i
.
y
),
(
float
)(
center_j
.
x
-
center_i
.
x
)
);
int
avg_width
=
(
i
->
rect
.
width
+
j
->
rect
.
width
)
/
2
;
float
norm_distance
=
(
float
)(
j
->
rect
.
x
-
(
i
->
rect
.
x
+
i
->
rect
.
width
))
/
avg_width
;
...
...
modules/xphoto/src/dct_image_denoising.cpp
View file @
3f7cca4a
...
...
@@ -137,9 +137,9 @@ namespace xphoto
{
CV_Assert
(
src
.
type
()
==
CV_MAKE_TYPE
(
CV_32F
,
3
)
);
cv
::
Matx33f
mt
(
cvInvSqrt
(
3
),
cvInvSqrt
(
3
),
cvInvSqrt
(
3
),
cvInvSqrt
(
2
),
0.0
f
,
-
cvInvSqrt
(
2
),
cvInvSqrt
(
6
),
-
2.0
f
*
cvInvSqrt
(
6
),
cvInvSqrt
(
6
));
cv
::
Matx33f
mt
(
cvInvSqrt
(
3
.0
f
),
cvInvSqrt
(
3.0
f
),
cvInvSqrt
(
3.0
f
),
cvInvSqrt
(
2
.0
f
),
0.0
f
,
-
cvInvSqrt
(
2.0
f
),
cvInvSqrt
(
6
.0
f
),
-
2.0
f
*
cvInvSqrt
(
6.0
f
),
cvInvSqrt
(
6.0
f
));
cv
::
transform
(
src
,
dst
,
mt
);
...
...
modules/xphoto/src/simple_color_balance.cpp
View file @
3f7cca4a
...
...
@@ -75,7 +75,7 @@ namespace xphoto
++
depth
;
int
bins
=
16
;
// number of bins at each histogram level
int
nElements
=
int
(
pow
(
bins
,
depth
)
);
int
nElements
=
int
(
pow
(
(
float
)
bins
,
(
float
)
depth
)
);
// number of elements in histogram tree
for
(
size_t
i
=
0
;
i
<
src
.
size
();
++
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment