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
bbda6c63
Commit
bbda6c63
authored
Aug 18, 2014
by
Alexander Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added internal namespace for photo module
parent
8923915a
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
36 additions
and
12 deletions
+36
-12
xphoto.hpp
modules/xphoto/include/opencv2/xphoto.hpp
+5
-6
dct_image_denoising.hpp
...les/xphoto/include/opencv2/xphoto/dct_image_denoising.hpp
+4
-0
inpainting.hpp
modules/xphoto/include/opencv2/xphoto/inpainting.hpp
+4
-0
simple_color_balance.hpp
...es/xphoto/include/opencv2/xphoto/simple_color_balance.hpp
+4
-0
dct_image_denoising.cpp
modules/xphoto/samples/dct_image_denoising.cpp
+1
-1
inpainting.cpp
modules/xphoto/samples/inpainting.cpp
+1
-1
simple_color_balance.cpp
modules/xphoto/samples/simple_color_balance.cpp
+1
-1
dct_image_denoising.cpp
modules/xphoto/src/dct_image_denoising.cpp
+5
-0
inpainting.cpp
modules/xphoto/src/inpainting.cpp
+5
-1
simple_color_balance.cpp
modules/xphoto/src/simple_color_balance.cpp
+4
-0
dct_image_denoising.cpp
modules/xphoto/test/dct_image_denoising.cpp
+1
-1
simple_color_balance.cpp
modules/xphoto/test/simple_color_balance.cpp
+1
-1
No files found.
modules/xphoto/include/opencv2/xphoto.hpp
View file @
bbda6c63
...
...
@@ -40,11 +40,10 @@
//
//M*/
#ifndef __OPENCV_
EDGEDETECTION
_HPP__
#define __OPENCV_
EDGEDETECTION
_HPP__
#ifndef __OPENCV_
XPHOTO
_HPP__
#define __OPENCV_
XPHOTO
_HPP__
#include "opencv2/xphoto.hpp"
#include "opencv2/xphoto/inpainting.hpp"
#include "opencv2/xphoto/simple_color_balance.hpp"
#include "opencv2/xphoto/dct_image_denoising.hpp"
#include "xphoto/inpainting.hpp"
#include "xphoto/simple_color_balance.hpp"
#include "xphoto/dct_image_denoising.hpp"
#endif
modules/xphoto/include/opencv2/xphoto/dct_image_denoising.hpp
View file @
bbda6c63
...
...
@@ -56,6 +56,8 @@
Namespace where all the C++ OpenCV functionality resides
*/
namespace
cv
{
namespace
xphoto
{
/*! This function implements simple dct-based image denoising,
* link: http://www.ipol.im/pub/art/2011/ys-dct/
...
...
@@ -67,5 +69,6 @@ namespace cv
*/
CV_EXPORTS_W
void
dctDenoising
(
const
Mat
&
src
,
Mat
&
dst
,
const
double
sigma
,
const
int
psize
=
16
);
}
}
#endif // __OPENCV_DCT_IMAGE_DENOISING_HPP__
\ No newline at end of file
modules/xphoto/include/opencv2/xphoto/inpainting.hpp
View file @
bbda6c63
...
...
@@ -56,6 +56,8 @@
Namespace where all the C++ OpenCV functionality resides
*/
namespace
cv
{
namespace
xphoto
{
//! various inpainting algorithms
enum
...
...
@@ -71,5 +73,6 @@ namespace cv
*/
CV_EXPORTS_W
void
inpaint
(
const
Mat
&
src
,
const
Mat
&
mask
,
Mat
&
dst
,
const
int
algorithmType
);
}
}
#endif // __OPENCV_INPAINTING_HPP__
\ No newline at end of file
modules/xphoto/include/opencv2/xphoto/simple_color_balance.hpp
View file @
bbda6c63
...
...
@@ -56,6 +56,8 @@
Namespace where all the C++ OpenCV functionality resides
*/
namespace
cv
{
namespace
xphoto
{
//! various white balance algorithms
enum
...
...
@@ -77,5 +79,6 @@ namespace cv
const
float
inputMin
=
0.0
f
,
const
float
inputMax
=
255.0
f
,
const
float
outputMin
=
0.0
f
,
const
float
outputMax
=
255.0
f
);
}
}
#endif // __OPENCV_SIMPLE_COLOR_BALANCE_HPP__
\ No newline at end of file
modules/xphoto/samples/dct_image_denoising.cpp
View file @
bbda6c63
...
...
@@ -54,7 +54,7 @@ int main( int argc, const char** argv )
psize
=
16
;
cv
::
Mat
res
(
src
.
size
(),
src
.
type
());
cv
::
dctDenoising
(
src
,
res
,
sigma
,
psize
);
cv
::
xphoto
::
dctDenoising
(
src
,
res
,
sigma
,
psize
);
if
(
outFilename
==
""
)
{
...
...
modules/xphoto/samples/inpainting.cpp
View file @
bbda6c63
...
...
@@ -56,7 +56,7 @@ int main( int argc, const char** argv )
}
cv
::
Mat
res
(
src
.
size
(),
src
.
type
());
cv
::
inpaint
(
src
,
mask
,
res
,
cv
::
INPAINT_SHIFTMAP
);
cv
::
xphoto
::
inpaint
(
src
,
mask
,
res
,
cv
::
xphoto
::
INPAINT_SHIFTMAP
);
cv
::
cvtColor
(
res
,
res
,
CV_Lab2RGB
);
if
(
outFilename
==
""
)
...
...
modules/xphoto/samples/simple_color_balance.cpp
View file @
bbda6c63
...
...
@@ -44,7 +44,7 @@ int main( int argc, const char** argv )
}
cv
::
Mat
res
(
src
.
size
(),
src
.
type
());
cv
::
balanceWhite
(
src
,
res
,
cv
::
WHITE_BALANCE_SIMPLE
);
cv
::
xphoto
::
balanceWhite
(
src
,
res
,
cv
::
xphoto
::
WHITE_BALANCE_SIMPLE
);
if
(
outFilename
==
""
)
{
...
...
modules/xphoto/src/dct_image_denoising.cpp
View file @
bbda6c63
...
...
@@ -54,6 +54,9 @@
namespace
cv
{
namespace
xphoto
{
void
grayDctDenoising
(
const
Mat
&
,
Mat
&
,
const
double
,
const
int
);
void
rgbDctDenoising
(
const
Mat
&
,
Mat
&
,
const
double
,
const
int
);
void
dctDenoising
(
const
Mat
&
,
Mat
&
,
const
double
,
const
int
);
...
...
@@ -179,3 +182,4 @@ namespace cv
}
}
}
\ No newline at end of file
modules/xphoto/src/inpainting.cpp
View file @
bbda6c63
...
...
@@ -67,6 +67,9 @@ namespace xphotoInternal
namespace
cv
{
namespace
xphoto
{
template
<
typename
Tp
,
unsigned
int
cn
>
static
void
shiftMapInpaint
(
const
Mat
&
src
,
const
Mat
&
mask
,
Mat
&
dst
,
const
int
nTransform
=
60
,
const
int
psize
=
8
)
...
...
@@ -117,7 +120,7 @@ namespace cv
switch
(
algorithmType
)
{
case
INPAINT_SHIFTMAP
:
case
xphoto
:
:
INPAINT_SHIFTMAP
:
shiftMapInpaint
<
Tp
,
cn
>
(
src
,
mask
,
dst
);
break
;
default
:
...
...
@@ -232,3 +235,4 @@ namespace cv
}
}
}
}
modules/xphoto/src/simple_color_balance.cpp
View file @
bbda6c63
...
...
@@ -54,6 +54,9 @@
namespace
cv
{
namespace
xphoto
{
template
<
typename
T
>
void
balanceWhite
(
std
::
vector
<
Mat_
<
T
>
>
&
src
,
Mat
&
dst
,
const
float
inputMin
,
const
float
inputMax
,
...
...
@@ -205,3 +208,4 @@ namespace cv
}
}
}
}
modules/xphoto/test/dct_image_denoising.cpp
View file @
bbda6c63
...
...
@@ -25,7 +25,7 @@ namespace cvtest
cv
::
Mat
currentResult
;
cv
::
dctDenoising
(
src
,
currentResult
,
sigma
[
i
],
psize
[
i
]);
cv
::
xphoto
::
dctDenoising
(
src
,
currentResult
,
sigma
[
i
],
psize
[
i
]);
cv
::
Mat
sqrError
=
(
currentResult
-
previousResult
)
.
mul
(
currentResult
-
previousResult
);
...
...
modules/xphoto/test/simple_color_balance.cpp
View file @
bbda6c63
...
...
@@ -19,7 +19,7 @@ namespace cvtest
cv
::
Mat
previousResult
=
cv
::
imread
(
previousResultName
,
1
);
cv
::
Mat
currentResult
;
cv
::
balanceWhite
(
src
,
currentResult
,
cv
::
WHITE_BALANCE_SIMPLE
);
cv
::
xphoto
::
balanceWhite
(
src
,
currentResult
,
cv
::
xphoto
::
WHITE_BALANCE_SIMPLE
);
cv
::
Mat
sqrError
=
(
currentResult
-
previousResult
)
.
mul
(
currentResult
-
previousResult
);
...
...
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