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
c2f540d0
Commit
c2f540d0
authored
Apr 15, 2014
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
White space fixes
parent
36d33dd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bilateral.cl
modules/imgproc/src/opencl/bilateral.cl
+4
-4
No files found.
modules/imgproc/src/opencl/bilateral.cl
View file @
c2f540d0
...
...
@@ -80,10 +80,10 @@ __kernel void bilateral(__global const uchar * src, int src_step, int src_offset
{
#
ifdef
INTEL_DEVICE
float_t
val
=
convert_float_t
(
loadpix
(
src
+
src_index
+
space_ofs[k]
))
;
float
diff
=
SUM
(
fabs
(
val
-
val0
))
;
float
diff
=
SUM
(
fabs
(
val
-
val0
))
;
#
else
int_t
val
=
convert_int_t
(
loadpix
(
src
+
src_index
+
space_ofs[k]
))
;
int
diff
=
SUM
(
abs
(
val
-
val0
))
;
int_t
val
=
convert_int_t
(
loadpix
(
src
+
src_index
+
space_ofs[k]
))
;
int
diff
=
SUM
(
abs
(
val
-
val0
))
;
#
endif
float
w
=
space_weight[k]
*
native_exp
((
float
)(
diff
*
diff
*
gauss_color_coeff
))
;
sum
+=
convert_float_t
(
val
)
*
(
float_t
)(
w
)
;
...
...
@@ -93,7 +93,7 @@ __kernel void bilateral(__global const uchar * src, int src_step, int src_offset
}
}
#
ifdef
INTEL_DEVICE
#
ifdef
INTEL_DEVICE
#
if
cn
==
1
//for
single
channgel
x4
sized
images.
__kernel
void
bilateral_float4
(
__global
const
uchar
*
src,
int
src_step,
int
src_offset,
...
...
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