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
555ed036
Commit
555ed036
authored
Jan 13, 2012
by
Alexandre Benoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected retina internal buffers copy methods
parent
d0b67d37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
retina.cpp
modules/contrib/src/retina.cpp
+3
-3
No files found.
modules/contrib/src/retina.cpp
View file @
555ed036
...
...
@@ -323,9 +323,9 @@ void Retina::getMagno(cv::Mat &retinaOutput_magno)
//retinaOutput_magno/=255.0;
}
// original API level data accessors
void
Retina
::
getMagno
(
std
::
valarray
<
float
>
&
){
_retinaFilter
->
getMovingContours
();}
void
Retina
::
getParvo
(
std
::
valarray
<
float
>
&
){
_retinaFilter
->
getContours
();}
// original API level data accessors
: copy buffers if size matches
void
Retina
::
getMagno
(
std
::
valarray
<
float
>
&
magnoOutputBufferCopy
){
if
(
magnoOutputBufferCopy
.
size
()
==
_retinaFilter
->
getMovingContours
().
size
())
magnoOutputBufferCopy
=
_retinaFilter
->
getMovingContours
();}
void
Retina
::
getParvo
(
std
::
valarray
<
float
>
&
parvoOutputBufferCopy
){
if
(
parvoOutputBufferCopy
.
size
()
==
_retinaFilter
->
getContours
().
size
())
parvoOutputBufferCopy
=
_retinaFilter
->
getContours
();}
// private method called by constructirs
void
Retina
::
_init
(
const
cv
::
Size
inputSize
,
const
bool
colorMode
,
RETINA_COLORSAMPLINGMETHOD
colorSamplingMethod
,
const
bool
useRetinaLogSampling
,
const
double
reductionFactor
,
const
double
samplingStrenght
)
...
...
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