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
655b6f6d
Commit
655b6f6d
authored
Mar 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xphoto: apply CV_OVERRIDE/CV_FINAL
parent
26b3b3c1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
32 deletions
+30
-32
bm3d_denoising_invoker_step1.hpp
modules/xphoto/src/bm3d_denoising_invoker_step1.hpp
+2
-3
bm3d_denoising_invoker_step2.hpp
modules/xphoto/src/bm3d_denoising_invoker_step2.hpp
+2
-3
dct_image_denoising.cpp
modules/xphoto/src/dct_image_denoising.cpp
+1
-1
grayworld_white_balance.cpp
modules/xphoto/src/grayworld_white_balance.cpp
+4
-4
learning_based_color_balance.cpp
modules/xphoto/src/learning_based_color_balance.cpp
+8
-8
photomontage.hpp
modules/xphoto/src/photomontage.hpp
+1
-1
simple_color_balance.cpp
modules/xphoto/src/simple_color_balance.cpp
+12
-12
No files found.
modules/xphoto/src/bm3d_denoising_invoker_step1.hpp
View file @
655b6f6d
...
...
@@ -67,7 +67,7 @@ public:
const
float
&
beta
);
virtual
~
Bm3dDenoisingInvokerStep1
();
void
operator
()
(
const
Range
&
range
)
const
;
void
operator
()
(
const
Range
&
range
)
const
CV_OVERRIDE
;
private
:
// Unimplemented operator in order to satisfy compiler warning.
...
...
@@ -514,4 +514,4 @@ inline void Bm3dDenoisingInvokerStep1<T, D, WT, TT, TC>::calcDistSumsForAllEleme
}
// namespace xphoto
}
// namespace cv
#endif
\ No newline at end of file
#endif
modules/xphoto/src/bm3d_denoising_invoker_step2.hpp
View file @
655b6f6d
...
...
@@ -68,7 +68,7 @@ public:
const
float
&
beta
);
virtual
~
Bm3dDenoisingInvokerStep2
();
void
operator
()
(
const
Range
&
range
)
const
;
void
operator
()
(
const
Range
&
range
)
const
CV_OVERRIDE
;
private
:
// Unimplemented operator in order to satisfy compiler warning.
...
...
@@ -537,4 +537,4 @@ inline void Bm3dDenoisingInvokerStep2<T, D, WT, TT, TC>::calcDistSumsForAllEleme
}
// namespace xphoto
}
// namespace cv
#endif
\ No newline at end of file
#endif
modules/xphoto/src/dct_image_denoising.cpp
View file @
655b6f6d
...
...
@@ -68,7 +68,7 @@ namespace xphoto
grayDctDenoisingInvoker
(
const
Mat
&
src
,
std
::
vector
<
Mat
>
&
patches
,
const
double
sigma
,
const
int
psize
);
~
grayDctDenoisingInvoker
(){};
void
operator
()
(
const
Range
&
range
)
const
;
void
operator
()
(
const
Range
&
range
)
const
CV_OVERRIDE
;
protected
:
const
Mat
&
src
;
...
...
modules/xphoto/src/grayworld_white_balance.cpp
View file @
655b6f6d
...
...
@@ -49,16 +49,16 @@ namespace xphoto
void
calculateChannelSums
(
uint
&
sumB
,
uint
&
sumG
,
uint
&
sumR
,
uchar
*
src_data
,
int
src_len
,
float
thresh
);
void
calculateChannelSums
(
uint64
&
sumB
,
uint64
&
sumG
,
uint64
&
sumR
,
ushort
*
src_data
,
int
src_len
,
float
thresh
);
class
GrayworldWBImpl
:
public
GrayworldWB
class
GrayworldWBImpl
CV_FINAL
:
public
GrayworldWB
{
private
:
float
thresh
;
public
:
GrayworldWBImpl
()
{
thresh
=
0.9
f
;
}
float
getSaturationThreshold
()
const
{
return
thresh
;
}
void
setSaturationThreshold
(
float
val
)
{
thresh
=
val
;
}
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
float
getSaturationThreshold
()
const
CV_OVERRIDE
{
return
thresh
;
}
void
setSaturationThreshold
(
float
val
)
CV_OVERRIDE
{
thresh
=
val
;
}
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
CV_OVERRIDE
{
CV_Assert
(
!
_src
.
empty
());
CV_Assert
(
_src
.
isContinuous
());
...
...
modules/xphoto/src/learning_based_color_balance.cpp
View file @
655b6f6d
...
...
@@ -126,16 +126,16 @@ class LearningBasedWBImpl : public LearningBasedWB
}
}
int
getRangeMaxVal
()
const
{
return
range_max_val
;
}
void
setRangeMaxVal
(
int
val
)
{
range_max_val
=
val
;
}
int
getRangeMaxVal
()
const
CV_OVERRIDE
{
return
range_max_val
;
}
void
setRangeMaxVal
(
int
val
)
CV_OVERRIDE
{
range_max_val
=
val
;
}
float
getSaturationThreshold
()
const
{
return
saturation_thresh
;
}
void
setSaturationThreshold
(
float
val
)
{
saturation_thresh
=
val
;
}
float
getSaturationThreshold
()
const
CV_OVERRIDE
{
return
saturation_thresh
;
}
void
setSaturationThreshold
(
float
val
)
CV_OVERRIDE
{
saturation_thresh
=
val
;
}
int
getHistBinNum
()
const
{
return
hist_bin_num
;
}
void
setHistBinNum
(
int
val
)
{
hist_bin_num
=
val
;
}
int
getHistBinNum
()
const
CV_OVERRIDE
{
return
hist_bin_num
;
}
void
setHistBinNum
(
int
val
)
CV_OVERRIDE
{
hist_bin_num
=
val
;
}
void
extractSimpleFeatures
(
InputArray
_src
,
OutputArray
_dst
)
void
extractSimpleFeatures
(
InputArray
_src
,
OutputArray
_dst
)
CV_OVERRIDE
{
CV_Assert
(
!
_src
.
empty
());
CV_Assert
(
_src
.
isContinuous
());
...
...
@@ -149,7 +149,7 @@ class LearningBasedWBImpl : public LearningBasedWB
Mat
(
dst
).
convertTo
(
_dst
,
CV_32F
);
}
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
CV_OVERRIDE
{
CV_Assert
(
!
_src
.
empty
());
CV_Assert
(
_src
.
isContinuous
());
...
...
modules/xphoto/src/photomontage.hpp
View file @
655b6f6d
...
...
@@ -98,7 +98,7 @@ private:
ParallelExpansion
(
Photomontage
<
Tp
>
*
_main
)
:
main
(
_main
){}
~
ParallelExpansion
(){};
void
operator
()
(
const
cv
::
Range
&
range
)
const
void
operator
()
(
const
cv
::
Range
&
range
)
const
CV_OVERRIDE
{
for
(
int
i
=
range
.
start
;
i
<=
range
.
end
-
1
;
++
i
)
main
->
distances
[
i
]
=
main
->
singleExpansion
(
i
);
...
...
modules/xphoto/src/simple_color_balance.cpp
View file @
655b6f6d
...
...
@@ -136,7 +136,7 @@ void balanceWhiteSimple(std::vector<Mat_<T> > &src, Mat &dst, const float inputM
cv
::
merge
(
src
,
dst
);
}
class
SimpleWBImpl
:
public
SimpleWB
class
SimpleWBImpl
CV_FINAL
:
public
SimpleWB
{
private
:
float
inputMin
,
inputMax
,
outputMin
,
outputMax
,
p
;
...
...
@@ -151,22 +151,22 @@ class SimpleWBImpl : public SimpleWB
p
=
2.0
f
;
}
float
getInputMin
()
const
{
return
inputMin
;
}
void
setInputMin
(
float
val
)
{
inputMin
=
val
;
}
float
getInputMin
()
const
CV_OVERRIDE
{
return
inputMin
;
}
void
setInputMin
(
float
val
)
CV_OVERRIDE
{
inputMin
=
val
;
}
float
getInputMax
()
const
{
return
inputMax
;
}
void
setInputMax
(
float
val
)
{
inputMax
=
val
;
}
float
getInputMax
()
const
CV_OVERRIDE
{
return
inputMax
;
}
void
setInputMax
(
float
val
)
CV_OVERRIDE
{
inputMax
=
val
;
}
float
getOutputMin
()
const
{
return
outputMin
;
}
void
setOutputMin
(
float
val
)
{
outputMin
=
val
;
}
float
getOutputMin
()
const
CV_OVERRIDE
{
return
outputMin
;
}
void
setOutputMin
(
float
val
)
CV_OVERRIDE
{
outputMin
=
val
;
}
float
getOutputMax
()
const
{
return
outputMax
;
}
void
setOutputMax
(
float
val
)
{
outputMax
=
val
;
}
float
getOutputMax
()
const
CV_OVERRIDE
{
return
outputMax
;
}
void
setOutputMax
(
float
val
)
CV_OVERRIDE
{
outputMax
=
val
;
}
float
getP
()
const
{
return
p
;
}
void
setP
(
float
val
)
{
p
=
val
;
}
float
getP
()
const
CV_OVERRIDE
{
return
p
;
}
void
setP
(
float
val
)
CV_OVERRIDE
{
p
=
val
;
}
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
void
balanceWhite
(
InputArray
_src
,
OutputArray
_dst
)
CV_OVERRIDE
{
CV_Assert
(
!
_src
.
empty
());
CV_Assert
(
_src
.
depth
()
==
CV_8U
||
_src
.
depth
()
==
CV_16S
||
_src
.
depth
()
==
CV_32S
||
_src
.
depth
()
==
CV_32F
);
...
...
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