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
1248ebeb
Commit
1248ebeb
authored
Apr 24, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: fix warnings
parent
df483cfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
linemod.cpp
modules/rgbd/src/linemod.cpp
+0
-1
weighted_median_filter.cpp
modules/ximgproc/src/weighted_median_filter.cpp
+3
-2
No files found.
modules/rgbd/src/linemod.cpp
View file @
1248ebeb
...
...
@@ -66,7 +66,6 @@ static inline int getLabel(int quantized)
case
128
:
return
7
;
default
:
CV_Error
(
Error
::
StsBadArg
,
"Invalid value of quantized parameter"
);
return
-
1
;
//avoid warning
}
}
...
...
modules/ximgproc/src/weighted_median_filter.cpp
View file @
1248ebeb
...
...
@@ -56,6 +56,7 @@ void from32FTo32S(Mat &img, Mat &outImg, int nI, float *mapping)
{
int
rows
=
img
.
rows
,
cols
=
img
.
cols
;
size_t
alls
=
(
size_t
)
rows
*
cols
;
CV_Assert
(
alls
<
INT_MAX
);
CV_Assert
(
img
.
isContinuous
());
float
*
imgPtr
=
img
.
ptr
<
float
>
();
...
...
@@ -66,7 +67,7 @@ void from32FTo32S(Mat &img, Mat &outImg, int nI, float *mapping)
for
(
size_t
i
=
0
;
i
<
alls
;
i
++
)
{
pairFI
&
d
=
data
[
i
];
d
.
second
=
i
;
d
.
second
=
(
int
)
i
;
d
.
first
=
imgPtr
[
i
];
}
...
...
@@ -128,7 +129,7 @@ void from32FTo32S(Mat &img, Mat &outImg, int nI, float *mapping)
mapping
[
cnt
]
=
data
[(
baseI
+
i
-
1
)
>>
1
].
first
;
//median
cnt
++
;
base
=
data
[
i
].
first
;
baseI
=
i
;
baseI
=
(
int
)
i
;
}
retImgPtr
[
data
[
i
].
second
]
=
cnt
;
}
...
...
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