Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
5728612f
Commit
5728612f
authored
Aug 29, 2013
by
Jin Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the trailing whitespace
parent
1e8194fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
bgfg_mog.cpp
modules/ocl/src/bgfg_mog.cpp
+0
-1
bgfg_mog.cl
modules/ocl/src/opencl/bgfg_mog.cl
+0
-3
No files found.
modules/ocl/src/bgfg_mog.cpp
View file @
5728612f
...
@@ -636,4 +636,3 @@ void cv::ocl::MOG2::release()
...
@@ -636,4 +636,3 @@ void cv::ocl::MOG2::release()
bgmodelUsedModes_
.
release
();
bgmodelUsedModes_
.
release
();
}
}
modules/ocl/src/opencl/bgfg_mog.cl
View file @
5728612f
...
@@ -142,7 +142,6 @@ __kernel void mog_withoutLearning_kernel(__global T_FRAME* frame, __global uchar
...
@@ -142,7 +142,6 @@ __kernel void mog_withoutLearning_kernel(__global T_FRAME* frame, __global uchar
if
(
x
<
frame_col
&&
y
<
frame_row
)
if
(
x
<
frame_col
&&
y
<
frame_row
)
{
{
T_MEAN_VAR
pix
=
cvt
(
frame[
(
y
+
frame_offset_y
)
*
frame_step
+
(
x
+
frame_offset_x
)
]
)
;
T_MEAN_VAR
pix
=
cvt
(
frame[
(
y
+
frame_offset_y
)
*
frame_step
+
(
x
+
frame_offset_x
)
]
)
;
int
kHit
=
-1
;
int
kHit
=
-1
;
...
@@ -179,12 +178,10 @@ __kernel void mog_withoutLearning_kernel(__global T_FRAME* frame, __global uchar
...
@@ -179,12 +178,10 @@ __kernel void mog_withoutLearning_kernel(__global T_FRAME* frame, __global uchar
}
}
}
}
}
}
if
(
kHit
<
0
|
| kHit >= kForeground)
if
(
kHit
<
0
|
| kHit >= kForeground)
fgmask[(y + fgmask_offset_y) * fgmask_step + (x + fgmask_offset_x)] = (uchar) (-1);
fgmask[(y + fgmask_offset_y) * fgmask_step + (x + fgmask_offset_x)] = (uchar) (-1);
else
else
fgmask[(y + fgmask_offset_y) * fgmask_step + (x + fgmask_offset_x)] = (uchar) (0);
fgmask[(y + fgmask_offset_y) * fgmask_step + (x + fgmask_offset_x)] = (uchar) (0);
}
}
}
}
...
...
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