Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
feec6d7e
Commit
feec6d7e
authored
Nov 10, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1893 from tompollok:3.4
parents
20efa8cc
fcb266f7
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
23 additions
and
23 deletions
+23
-23
OpenEXRimages_HDR_Retina_toneMapping.cpp
...ired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping.cpp
+1
-1
OpenEXRimages_HDR_Retina_toneMapping_video.cpp
...amples/cpp/OpenEXRimages_HDR_Retina_toneMapping_video.cpp
+1
-1
retinaDemo.cpp
modules/bioinspired/samples/cpp/retinaDemo.cpp
+1
-1
retina_tutorial.cpp
...samples/cpp/tutorial_code/bioinspired/retina_tutorial.cpp
+1
-1
retina_ocl.cpp
modules/bioinspired/samples/ocl/retina_ocl.cpp
+1
-1
retina.cpp
modules/bioinspired/src/retina.cpp
+2
-2
retina_ocl.cpp
modules/bioinspired/src/retina_ocl.cpp
+2
-2
transientareassegmentationmodule.cpp
modules/bioinspired/src/transientareassegmentationmodule.cpp
+2
-2
facerec_demo.cpp
modules/face/samples/facerec_demo.cpp
+1
-1
facerec_eigenfaces.cpp
modules/face/samples/facerec_eigenfaces.cpp
+1
-1
facerec_fisherfaces.cpp
modules/face/samples/facerec_fisherfaces.cpp
+1
-1
facerec_lbph.cpp
modules/face/samples/facerec_lbph.cpp
+1
-1
facerec_save_load.cpp
modules/face/samples/facerec_save_load.cpp
+1
-1
facerec_video.cpp
modules/face/samples/facerec_video.cpp
+1
-1
functional.cpp
modules/matlab/generator/templates/functional.cpp
+2
-2
cv_exception.cpp
modules/matlab/test/cv_exception.cpp
+1
-1
std_exception.cpp
modules/matlab/test/std_exception.cpp
+1
-1
ovis.cpp
modules/ovis/src/ovis.cpp
+2
-2
No files found.
modules/bioinspired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping.cpp
View file @
feec6d7e
...
...
@@ -292,7 +292,7 @@ static void drawPlot(const cv::Mat curve, const std::string figureTitle, const i
*/
cv
::
waitKey
(
10
);
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
...
...
modules/bioinspired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping_video.cpp
View file @
feec6d7e
...
...
@@ -353,7 +353,7 @@ static void loadNewFrame(const std::string filenamePrototype, const int currentF
// jump to next frame
++
currentFrameIndex
;
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
...
...
modules/bioinspired/samples/cpp/retinaDemo.cpp
View file @
feec6d7e
...
...
@@ -146,7 +146,7 @@ int main(int argc, char* argv[]) {
cv
::
waitKey
(
5
);
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
...
...
modules/bioinspired/samples/cpp/tutorial_code/bioinspired/retina_tutorial.cpp
View file @
feec6d7e
...
...
@@ -137,7 +137,7 @@ int main(int argc, char* argv[]) {
cv
::
imshow
(
"Retina Magno"
,
retinaOutput_magno
);
cv
::
waitKey
(
10
);
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
std
::
cerr
<<
"Error using Retina or end of video sequence reached : "
<<
e
.
what
()
<<
std
::
endl
;
}
...
...
modules/bioinspired/samples/ocl/retina_ocl.cpp
View file @
feec6d7e
...
...
@@ -109,7 +109,7 @@ int main(int argc, char* argv[])
}
printf
(
"Average: %.4fms
\n
"
,
(
double
)
total_time
/
total_loop_count
/
cv
::
getTickFrequency
()
*
1000.0
);
}
catch
(
c
v
::
Exception
e
)
catch
(
c
onst
cv
::
Exception
&
e
)
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
...
...
modules/bioinspired/src/retina.cpp
View file @
feec6d7e
...
...
@@ -368,7 +368,7 @@ void RetinaImpl::setup(String retinaParameterFile, const bool applyDefaultSetupO
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
if
(
applyDefaultSetupOnFailure
)
...
...
@@ -422,7 +422,7 @@ void RetinaImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFailur
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
printf
(
"RetinaImpl::setup: resetting retina with default parameters
\n
"
);
if
(
applyDefaultSetupOnFailure
)
...
...
modules/bioinspired/src/retina_ocl.cpp
View file @
feec6d7e
...
...
@@ -127,7 +127,7 @@ void RetinaOCLImpl::setup(String retinaParameterFile, const bool applyDefaultSet
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
std
::
cout
<<
"RetinaOCLImpl::setup: wrong/inappropriate xml parameter file : error report :`n=>"
<<
e
.
what
()
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
...
...
@@ -181,7 +181,7 @@ void RetinaOCLImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFai
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
std
::
cout
<<
"RetinaOCLImpl::setup: resetting retina with default parameters"
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
...
...
modules/bioinspired/src/transientareassegmentationmodule.cpp
View file @
feec6d7e
...
...
@@ -298,7 +298,7 @@ void TransientAreasSegmentationModuleImpl::setup(String segmentationParameterFil
// opening retinaParameterFile in read mode
cv
::
FileStorage
fs
(
segmentationParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
catch
(
cv
::
Exception
&
e
)
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
if
(
applyDefaultSetupOnFailure
)
...
...
@@ -338,7 +338,7 @@ void TransientAreasSegmentationModuleImpl::setup(cv::FileStorage &fs, const bool
currFn
[
"contextEnergy_spatialConstant"
]
>>
_segmentationParameters
.
contextEnergy_spatialConstant
;
setup
(
_segmentationParameters
);
}
catch
(
cv
::
Exception
&
e
)
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
std
::
cout
<<
"Retina::setup: resetting retina with default parameters"
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
...
...
modules/face/samples/facerec_demo.cpp
View file @
feec6d7e
...
...
@@ -93,7 +93,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
try
{
read_csv
(
fn_csv
,
images
,
labels
,
labelsInfo
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/face/samples/facerec_eigenfaces.cpp
View file @
feec6d7e
...
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
try
{
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/face/samples/facerec_fisherfaces.cpp
View file @
feec6d7e
...
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
try
{
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/face/samples/facerec_lbph.cpp
View file @
feec6d7e
...
...
@@ -62,7 +62,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
try
{
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/face/samples/facerec_save_load.cpp
View file @
feec6d7e
...
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
try
{
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/face/samples/facerec_video.cpp
View file @
feec6d7e
...
...
@@ -68,7 +68,7 @@ int main(int argc, const char *argv[]) {
// Read in the data (fails if no valid input filename is given, but you'll get an error message):
try
{
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
exit
(
1
);
...
...
modules/matlab/generator/templates/functional.cpp
View file @
feec6d7e
...
...
@@ -85,9 +85,9 @@ addVariant("{{ fun.name }}", {{ fun.req|inputs|length }}, {{ fun.opt|inputs|leng
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
{{
compose
(
fun
)
}}
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
error
(
std
::
string
(
"cv::exception caught: "
).
append
(
e
.
what
()).
c_str
());
}
catch
(
std
::
exception
&
e
)
{
}
catch
(
const
std
::
exception
&
e
)
{
error
(
std
::
string
(
"std::exception caught: "
).
append
(
e
.
what
()).
c_str
());
}
catch
(...)
{
error
(
"Uncaught exception occurred in {{fun.name}}"
);
...
...
modules/matlab/test/cv_exception.cpp
View file @
feec6d7e
...
...
@@ -25,7 +25,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
throw
cv
::
Exception
(
-
1
,
"OpenCV exception thrown"
,
__func__
,
__FILE__
,
__LINE__
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
mexErrMsgTxt
(
e
.
what
());
}
catch
(...)
{
mexErrMsgTxt
(
"Incorrect exception caught!"
);
...
...
modules/matlab/test/std_exception.cpp
View file @
feec6d7e
...
...
@@ -24,7 +24,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
throw
std
::
exception
();
}
catch
(
std
::
exception
&
e
)
{
}
catch
(
const
std
::
exception
&
e
)
{
mexErrMsgTxt
(
e
.
what
());
}
catch
(...)
{
mexErrMsgTxt
(
"Incorrect exception caught!"
);
...
...
modules/ovis/src/ovis.cpp
View file @
feec6d7e
...
...
@@ -149,7 +149,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
if
(
mo
)
return
*
mo
->
getParentSceneNode
()
->
getParentSceneNode
();
}
catch
(
ItemIdentityException
&
)
catch
(
const
ItemIdentityException
&
)
{
// ignore
}
...
...
@@ -159,7 +159,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
if
(
!
mo
)
mo
=
sceneMgr
->
getMovableObject
(
name
,
"Light"
);
}
catch
(
ItemIdentityException
&
)
catch
(
const
ItemIdentityException
&
)
{
// ignore
}
...
...
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