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
3f4e7dfc
Commit
3f4e7dfc
authored
Feb 19, 2015
by
jaco
Committed by
Vladislav Sovrasov
Oct 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceil explicit cast added
parent
83f80a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
motionSaliencyBinWangApr2014.cpp
modules/saliency/src/motionSaliencyBinWangApr2014.cpp
+2
-2
No files found.
modules/saliency/src/motionSaliencyBinWangApr2014.cpp
View file @
3f4e7dfc
...
...
@@ -236,7 +236,7 @@ bool MotionSaliencyBinWangApr2014::lowResolutionDetection( const Mat& image, Mat
lowResBFMask
.
setTo
(
1
);
// Scan all the ROI of original matrices
for
(
int
i
=
0
;
i
<
ceil
(
(
float
)
image
.
rows
/
N
);
i
++
)
for
(
int
i
=
0
;
i
<
(
int
)
ceil
(
(
float
)
image
.
rows
/
N
);
i
++
)
{
if
(
(
roi
.
y
+
(
N
-
1
)
)
<=
(
image
.
rows
-
1
)
)
{
...
...
@@ -244,7 +244,7 @@ bool MotionSaliencyBinWangApr2014::lowResolutionDetection( const Mat& image, Mat
roi
=
Rect
(
Point
(
roi
.
x
,
roi
.
y
),
Size
(
N
,
N
)
);
}
for
(
int
j
=
0
;
j
<
ceil
(
(
float
)
image
.
cols
/
N
);
j
++
)
for
(
int
j
=
0
;
j
<
(
int
)
ceil
(
(
float
)
image
.
cols
/
N
);
j
++
)
{
/* Pixels with activity greater than Bth are eliminated from the detection result. In this way,
continuously blinking noise-pixels will be eliminated from the detection results,
...
...
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