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
9b20b513
Commit
9b20b513
authored
Aug 21, 2013
by
peng xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error on Mac
parent
3cccded8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
retina_ocl.cpp
modules/bioinspired/src/retina_ocl.cpp
+4
-4
No files found.
modules/bioinspired/src/retina_ocl.cpp
View file @
9b20b513
...
...
@@ -733,7 +733,7 @@ void BasicRetinaFilter::_verticalCausalFilter_Irregular(oclMat &outputFrame, con
openCLExecuteKernel
(
ctx
,
&
retina_kernel
,
"verticalCausalFilter_Irregular"
,
globalSize
,
localSize
,
args
,
-
1
,
-
1
);
}
void
cv
::
bioinspired
::
ocl
::
normalizeGrayOutput_0_maxOutputValue
(
oclMat
&
inputOutputBuffer
,
const
float
maxOutputValue
)
void
normalizeGrayOutput_0_maxOutputValue
(
oclMat
&
inputOutputBuffer
,
const
float
maxOutputValue
)
{
double
min_val
,
max_val
;
ocl
::
minMax
(
inputOutputBuffer
,
&
min_val
,
&
max_val
);
...
...
@@ -743,7 +743,7 @@ void cv::bioinspired::ocl::normalizeGrayOutput_0_maxOutputValue(oclMat &inputOut
ocl
::
add
(
inputOutputBuffer
,
offset
,
inputOutputBuffer
);
}
void
cv
::
bioinspired
::
ocl
::
normalizeGrayOutputCentredSigmoide
(
const
float
meanValue
,
const
float
sensitivity
,
oclMat
&
in
,
oclMat
&
out
,
const
float
maxValue
)
void
normalizeGrayOutputCentredSigmoide
(
const
float
meanValue
,
const
float
sensitivity
,
oclMat
&
in
,
oclMat
&
out
,
const
float
maxValue
)
{
if
(
sensitivity
==
1.0
f
)
{
...
...
@@ -771,7 +771,7 @@ void cv::bioinspired::ocl::normalizeGrayOutputCentredSigmoide(const float meanVa
openCLExecuteKernel
(
ctx
,
&
retina_kernel
,
"normalizeGrayOutputCentredSigmoide"
,
globalSize
,
localSize
,
args
,
-
1
,
-
1
);
}
void
cv
::
bioinspired
::
ocl
::
normalizeGrayOutputNearZeroCentreredSigmoide
(
oclMat
&
inputPicture
,
oclMat
&
outputBuffer
,
const
float
sensitivity
,
const
float
maxOutputValue
)
void
normalizeGrayOutputNearZeroCentreredSigmoide
(
oclMat
&
inputPicture
,
oclMat
&
outputBuffer
,
const
float
sensitivity
,
const
float
maxOutputValue
)
{
float
X0cube
=
sensitivity
*
sensitivity
*
sensitivity
;
...
...
@@ -791,7 +791,7 @@ void cv::bioinspired::ocl::normalizeGrayOutputNearZeroCentreredSigmoide(oclMat &
openCLExecuteKernel
(
ctx
,
&
retina_kernel
,
"normalizeGrayOutputNearZeroCentreredSigmoide"
,
globalSize
,
localSize
,
args
,
-
1
,
-
1
);
}
void
c
v
::
bioinspired
::
ocl
::
c
enterReductImageLuminance
(
oclMat
&
inputoutput
)
void
centerReductImageLuminance
(
oclMat
&
inputoutput
)
{
Scalar
mean
,
stddev
;
cv
::
meanStdDev
((
Mat
)
inputoutput
,
mean
,
stddev
);
...
...
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