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
a8eb3e1b
Commit
a8eb3e1b
authored
7 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
superres: apply CV_OVERRIDE/CV_FINAL
parent
4a0fa576
No related merge requests found
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
34 deletions
+54
-34
superres.hpp
modules/superres/include/opencv2/superres.hpp
+2
-2
btv_l1.cpp
modules/superres/src/btv_l1.cpp
+27
-17
btv_l1_cuda.cpp
modules/superres/src/btv_l1_cuda.cpp
+20
-10
frame_source.cpp
modules/superres/src/frame_source.cpp
+5
-5
optical_flow.cpp
modules/superres/src/optical_flow.cpp
+0
-0
No files found.
modules/superres/include/opencv2/superres.hpp
View file @
a8eb3e1b
...
...
@@ -97,8 +97,8 @@ namespace cv
@param frame Output result
*/
void
nextFrame
(
OutputArray
frame
);
void
reset
();
void
nextFrame
(
OutputArray
frame
)
CV_OVERRIDE
;
void
reset
()
CV_OVERRIDE
;
/** @brief Clear all inner buffers.
*/
...
...
This diff is collapsed.
Click to expand it.
modules/superres/src/btv_l1.cpp
View file @
a8eb3e1b
...
...
@@ -363,7 +363,7 @@ namespace
template
<
typename
T
>
struct
BtvRegularizationBody
:
ParallelLoopBody
{
void
operator
()(
const
Range
&
range
)
const
;
void
operator
()(
const
Range
&
range
)
const
CV_OVERRIDE
;
Mat
src
;
mutable
Mat
dst
;
...
...
@@ -470,18 +470,28 @@ namespace
void
process
(
InputArrayOfArrays
src
,
OutputArray
dst
,
InputArrayOfArrays
forwardMotions
,
InputArrayOfArrays
backwardMotions
,
int
baseIdx
);
void
collectGarbage
();
CV_IMPL_PROPERTY
(
int
,
Scale
,
scale_
)
CV_IMPL_PROPERTY
(
int
,
Iterations
,
iterations_
)
CV_IMPL_PROPERTY
(
double
,
Tau
,
tau_
)
CV_IMPL_PROPERTY
(
double
,
Labmda
,
lambda_
)
CV_IMPL_PROPERTY
(
double
,
Alpha
,
alpha_
)
CV_IMPL_PROPERTY
(
int
,
KernelSize
,
btvKernelSize_
)
CV_IMPL_PROPERTY
(
int
,
BlurKernelSize
,
blurKernelSize_
)
CV_IMPL_PROPERTY
(
double
,
BlurSigma
,
blurSigma_
)
CV_IMPL_PROPERTY
(
int
,
TemporalAreaRadius
,
temporalAreaRadius_
)
CV_IMPL_PROPERTY_S
(
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>
,
OpticalFlow
,
opticalFlow_
)
void
collectGarbage
()
CV_OVERRIDE
;
inline
int
getScale
()
const
CV_OVERRIDE
{
return
scale_
;
}
inline
void
setScale
(
int
val
)
CV_OVERRIDE
{
scale_
=
val
;
}
inline
int
getIterations
()
const
CV_OVERRIDE
{
return
iterations_
;
}
inline
void
setIterations
(
int
val
)
CV_OVERRIDE
{
iterations_
=
val
;
}
inline
double
getTau
()
const
CV_OVERRIDE
{
return
tau_
;
}
inline
void
setTau
(
double
val
)
CV_OVERRIDE
{
tau_
=
val
;
}
inline
double
getLabmda
()
const
CV_OVERRIDE
{
return
lambda_
;
}
inline
void
setLabmda
(
double
val
)
CV_OVERRIDE
{
lambda_
=
val
;
}
inline
double
getAlpha
()
const
CV_OVERRIDE
{
return
alpha_
;
}
inline
void
setAlpha
(
double
val
)
CV_OVERRIDE
{
alpha_
=
val
;
}
inline
int
getKernelSize
()
const
CV_OVERRIDE
{
return
btvKernelSize_
;
}
inline
void
setKernelSize
(
int
val
)
CV_OVERRIDE
{
btvKernelSize_
=
val
;
}
inline
int
getBlurKernelSize
()
const
CV_OVERRIDE
{
return
blurKernelSize_
;
}
inline
void
setBlurKernelSize
(
int
val
)
CV_OVERRIDE
{
blurKernelSize_
=
val
;
}
inline
double
getBlurSigma
()
const
CV_OVERRIDE
{
return
blurSigma_
;
}
inline
void
setBlurSigma
(
double
val
)
CV_OVERRIDE
{
blurSigma_
=
val
;
}
inline
int
getTemporalAreaRadius
()
const
CV_OVERRIDE
{
return
temporalAreaRadius_
;
}
inline
void
setTemporalAreaRadius
(
int
val
)
CV_OVERRIDE
{
temporalAreaRadius_
=
val
;
}
inline
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>
getOpticalFlow
()
const
CV_OVERRIDE
{
return
opticalFlow_
;
}
inline
void
setOpticalFlow
(
const
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>&
val
)
CV_OVERRIDE
{
opticalFlow_
=
val
;
}
protected
:
int
scale_
;
...
...
@@ -798,18 +808,18 @@ namespace
////////////////////////////////////////////////////////////////////
class
BTVL1
:
public
BTVL1_Base
class
BTVL1
CV_FINAL
:
public
BTVL1_Base
{
public
:
BTVL1
();
void
collectGarbage
();
void
collectGarbage
()
CV_OVERRIDE
;
protected
:
void
initImpl
(
Ptr
<
FrameSource
>&
frameSource
);
void
initImpl
(
Ptr
<
FrameSource
>&
frameSource
)
CV_OVERRIDE
;
bool
ocl_initImpl
(
Ptr
<
FrameSource
>&
frameSource
);
void
processImpl
(
Ptr
<
FrameSource
>&
frameSource
,
OutputArray
output
);
void
processImpl
(
Ptr
<
FrameSource
>&
frameSource
,
OutputArray
output
)
CV_OVERRIDE
;
bool
ocl_processImpl
(
Ptr
<
FrameSource
>&
frameSource
,
OutputArray
output
);
private
:
...
...
This diff is collapsed.
Click to expand it.
modules/superres/src/btv_l1_cuda.cpp
View file @
a8eb3e1b
...
...
@@ -218,16 +218,26 @@ namespace
void
collectGarbage
();
CV_IMPL_PROPERTY
(
int
,
Scale
,
scale_
)
CV_IMPL_PROPERTY
(
int
,
Iterations
,
iterations_
)
CV_IMPL_PROPERTY
(
double
,
Tau
,
tau_
)
CV_IMPL_PROPERTY
(
double
,
Labmda
,
lambda_
)
CV_IMPL_PROPERTY
(
double
,
Alpha
,
alpha_
)
CV_IMPL_PROPERTY
(
int
,
KernelSize
,
btvKernelSize_
)
CV_IMPL_PROPERTY
(
int
,
BlurKernelSize
,
blurKernelSize_
)
CV_IMPL_PROPERTY
(
double
,
BlurSigma
,
blurSigma_
)
CV_IMPL_PROPERTY
(
int
,
TemporalAreaRadius
,
temporalAreaRadius_
)
CV_IMPL_PROPERTY_S
(
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>
,
OpticalFlow
,
opticalFlow_
)
inline
int
getScale
()
const
CV_OVERRIDE
{
return
scale_
;
}
inline
void
setScale
(
int
val
)
CV_OVERRIDE
{
scale_
=
val
;
}
inline
int
getIterations
()
const
CV_OVERRIDE
{
return
iterations_
;
}
inline
void
setIterations
(
int
val
)
CV_OVERRIDE
{
iterations_
=
val
;
}
inline
double
getTau
()
const
CV_OVERRIDE
{
return
tau_
;
}
inline
void
setTau
(
double
val
)
CV_OVERRIDE
{
tau_
=
val
;
}
inline
double
getLabmda
()
const
CV_OVERRIDE
{
return
lambda_
;
}
inline
void
setLabmda
(
double
val
)
CV_OVERRIDE
{
lambda_
=
val
;
}
inline
double
getAlpha
()
const
CV_OVERRIDE
{
return
alpha_
;
}
inline
void
setAlpha
(
double
val
)
CV_OVERRIDE
{
alpha_
=
val
;
}
inline
int
getKernelSize
()
const
CV_OVERRIDE
{
return
btvKernelSize_
;
}
inline
void
setKernelSize
(
int
val
)
CV_OVERRIDE
{
btvKernelSize_
=
val
;
}
inline
int
getBlurKernelSize
()
const
CV_OVERRIDE
{
return
blurKernelSize_
;
}
inline
void
setBlurKernelSize
(
int
val
)
CV_OVERRIDE
{
blurKernelSize_
=
val
;
}
inline
double
getBlurSigma
()
const
CV_OVERRIDE
{
return
blurSigma_
;
}
inline
void
setBlurSigma
(
double
val
)
CV_OVERRIDE
{
blurSigma_
=
val
;
}
inline
int
getTemporalAreaRadius
()
const
CV_OVERRIDE
{
return
temporalAreaRadius_
;
}
inline
void
setTemporalAreaRadius
(
int
val
)
CV_OVERRIDE
{
temporalAreaRadius_
=
val
;
}
inline
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>
getOpticalFlow
()
const
CV_OVERRIDE
{
return
opticalFlow_
;
}
inline
void
setOpticalFlow
(
const
Ptr
<
cv
::
superres
::
DenseOpticalFlowExt
>&
val
)
CV_OVERRIDE
{
opticalFlow_
=
val
;
}
protected
:
int
scale_
;
...
...
This diff is collapsed.
Click to expand it.
modules/superres/src/frame_source.cpp
View file @
a8eb3e1b
...
...
@@ -58,8 +58,8 @@ namespace
class
EmptyFrameSource
:
public
FrameSource
{
public
:
void
nextFrame
(
OutputArray
frame
);
void
reset
();
void
nextFrame
(
OutputArray
frame
)
CV_OVERRIDE
;
void
reset
()
CV_OVERRIDE
;
};
void
EmptyFrameSource
::
nextFrame
(
OutputArray
frame
)
...
...
@@ -103,7 +103,7 @@ namespace
class
CaptureFrameSource
:
public
FrameSource
{
public
:
void
nextFrame
(
OutputArray
frame
);
void
nextFrame
(
OutputArray
frame
)
CV_OVERRIDE
;
protected
:
VideoCapture
vc_
;
...
...
@@ -135,7 +135,7 @@ namespace
public
:
VideoFrameSource
(
const
String
&
fileName
);
void
reset
();
void
reset
()
CV_OVERRIDE
;
private
:
String
fileName_
;
...
...
@@ -158,7 +158,7 @@ namespace
public
:
CameraFrameSource
(
int
deviceId
);
void
reset
();
void
reset
()
CV_OVERRIDE
;
private
:
int
deviceId_
;
...
...
This diff is collapsed.
Click to expand it.
modules/superres/src/optical_flow.cpp
View file @
a8eb3e1b
This diff is collapsed.
Click to expand it.
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