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
711fb6bd
Commit
711fb6bd
authored
Aug 13, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boring changes - bioinspired.
parent
beeb932d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
retina.cpp
modules/bioinspired/src/retina.cpp
+4
-2
retina_ocl.cpp
modules/bioinspired/src/retina_ocl.cpp
+2
-2
retinafasttonemapping.cpp
modules/bioinspired/src/retinafasttonemapping.cpp
+3
-3
No files found.
modules/bioinspired/src/retina.cpp
View file @
711fb6bd
...
@@ -295,8 +295,10 @@ private:
...
@@ -295,8 +295,10 @@ private:
};
};
// smart pointers allocation :
// smart pointers allocation :
Ptr
<
Retina
>
createRetina
(
Size
inputSize
){
return
new
RetinaImpl
(
inputSize
);
}
Ptr
<
Retina
>
createRetina
(
Size
inputSize
){
return
makePtr
<
RetinaImpl
>
(
inputSize
);
}
Ptr
<
Retina
>
createRetina
(
Size
inputSize
,
const
bool
colorMode
,
int
colorSamplingMethod
,
const
bool
useRetinaLogSampling
,
const
double
reductionFactor
,
const
double
samplingStrenght
){
return
new
RetinaImpl
(
inputSize
,
colorMode
,
colorSamplingMethod
,
useRetinaLogSampling
,
reductionFactor
,
samplingStrenght
);}
Ptr
<
Retina
>
createRetina
(
Size
inputSize
,
const
bool
colorMode
,
int
colorSamplingMethod
,
const
bool
useRetinaLogSampling
,
const
double
reductionFactor
,
const
double
samplingStrenght
){
return
makePtr
<
RetinaImpl
>
(
inputSize
,
colorMode
,
colorSamplingMethod
,
useRetinaLogSampling
,
reductionFactor
,
samplingStrenght
);
}
// RetinaImpl code
// RetinaImpl code
...
...
modules/bioinspired/src/retina_ocl.cpp
View file @
711fb6bd
...
@@ -1639,10 +1639,10 @@ void RetinaFilter::_processRetinaParvoMagnoMapping()
...
@@ -1639,10 +1639,10 @@ void RetinaFilter::_processRetinaParvoMagnoMapping()
}
}
}
/* namespace ocl */
}
/* namespace ocl */
Ptr
<
Retina
>
createRetina_OCL
(
Size
getInputSize
){
return
new
ocl
::
RetinaOCLImpl
(
getInputSize
);
}
Ptr
<
Retina
>
createRetina_OCL
(
Size
getInputSize
){
return
makePtr
<
ocl
::
RetinaOCLImpl
>
(
getInputSize
);
}
Ptr
<
Retina
>
createRetina_OCL
(
Size
getInputSize
,
const
bool
colorMode
,
int
colorSamplingMethod
,
const
bool
useRetinaLogSampling
,
const
double
reductionFactor
,
const
double
samplingStrenght
)
Ptr
<
Retina
>
createRetina_OCL
(
Size
getInputSize
,
const
bool
colorMode
,
int
colorSamplingMethod
,
const
bool
useRetinaLogSampling
,
const
double
reductionFactor
,
const
double
samplingStrenght
)
{
{
return
new
ocl
::
RetinaOCLImpl
(
getInputSize
,
colorMode
,
colorSamplingMethod
,
useRetinaLogSampling
,
reductionFactor
,
samplingStrenght
);
return
makePtr
<
ocl
::
RetinaOCLImpl
>
(
getInputSize
,
colorMode
,
colorSamplingMethod
,
useRetinaLogSampling
,
reductionFactor
,
samplingStrenght
);
}
}
}
/* namespace bioinspired */
}
/* namespace bioinspired */
...
...
modules/bioinspired/src/retinafasttonemapping.cpp
View file @
711fb6bd
...
@@ -114,9 +114,9 @@ public:
...
@@ -114,9 +114,9 @@ public:
_imageOutput
.
resize
(
nbPixels
*
3
);
_imageOutput
.
resize
(
nbPixels
*
3
);
_temp2
.
resize
(
nbPixels
);
_temp2
.
resize
(
nbPixels
);
// allocate the main filter with 2 setup sets properties (one for each low pass filter
// allocate the main filter with 2 setup sets properties (one for each low pass filter
_multiuseFilter
=
new
BasicRetinaFilter
(
imageInput
.
height
,
imageInput
.
width
,
2
);
_multiuseFilter
=
makePtr
<
BasicRetinaFilter
>
(
imageInput
.
height
,
imageInput
.
width
,
2
);
// allocate the color manager (multiplexer/demultiplexer
// allocate the color manager (multiplexer/demultiplexer
_colorEngine
=
new
RetinaColor
(
imageInput
.
height
,
imageInput
.
width
);
_colorEngine
=
makePtr
<
RetinaColor
>
(
imageInput
.
height
,
imageInput
.
width
);
// setup filter behaviors with default values
// setup filter behaviors with default values
setup
();
setup
();
}
}
...
@@ -309,7 +309,7 @@ bool _convertCvMat2ValarrayBuffer(InputArray inputMat, std::valarray<float> &out
...
@@ -309,7 +309,7 @@ bool _convertCvMat2ValarrayBuffer(InputArray inputMat, std::valarray<float> &out
CV_EXPORTS
Ptr
<
RetinaFastToneMapping
>
createRetinaFastToneMapping
(
Size
inputSize
)
CV_EXPORTS
Ptr
<
RetinaFastToneMapping
>
createRetinaFastToneMapping
(
Size
inputSize
)
{
{
return
new
RetinaFastToneMappingImpl
(
inputSize
);
return
makePtr
<
RetinaFastToneMappingImpl
>
(
inputSize
);
}
}
}
// end of namespace bioinspired
}
// end of namespace bioinspired
...
...
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