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
c07d9d75
Commit
c07d9d75
authored
Feb 10, 2012
by
Alexandre Benoit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added get methods for retina outputs
parent
ef8c2635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
retina.hpp
modules/contrib/include/opencv2/contrib/retina.hpp
+4
-0
retina.cpp
modules/contrib/src/retina.cpp
+3
-0
No files found.
modules/contrib/include/opencv2/contrib/retina.hpp
View file @
c07d9d75
...
...
@@ -288,6 +288,10 @@ public:
*/
void
getMagno
(
std
::
valarray
<
float
>
&
retinaOutput_magno
);
// original API level data accessors : get buffers addresses...
const
std
::
valarray
<
float
>
&
getMagno
()
const
;
const
std
::
valarray
<
float
>
&
getParvo
()
const
;
/**
* activate color saturation as the final step of the color demultiplexing process
* -> this saturation is a sigmoide function applied to each channel of the demultiplexed image.
...
...
modules/contrib/src/retina.cpp
View file @
c07d9d75
...
...
@@ -337,6 +337,9 @@ void Retina::getMagno(cv::Mat &retinaOutput_magno)
// 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
();}
// original API level data accessors : get buffers addresses...
const
std
::
valarray
<
float
>
&
Retina
::
getMagno
()
const
{
return
_retinaFilter
->
getMovingContours
();}
const
std
::
valarray
<
float
>
&
Retina
::
getParvo
()
const
{
if
(
_retinaFilter
->
getColorMode
())
return
_retinaFilter
->
getColorOutput
();
/* implicite else */
return
_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