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
877f2f35
Commit
877f2f35
authored
Sep 11, 2014
by
Bellaktris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warning & error fixes
parent
9c606686
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
inpainting.cpp
modules/xphoto/src/inpainting.cpp
+5
-5
photomontage.hpp
modules/xphoto/src/photomontage.hpp
+3
-4
No files found.
modules/xphoto/src/inpainting.cpp
View file @
877f2f35
...
...
@@ -148,7 +148,7 @@ namespace xphoto
pPath
[
i
]
+
cv
::
Point2i
(
+
1
,
0
)
};
for
(
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
for
(
u
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
if
(
p
[
j
].
y
<
src
.
rows
&&
p
[
j
].
y
>=
0
&&
p
[
j
].
x
<
src
.
cols
&&
p
[
j
].
x
>=
0
)
linkIdx
[
i
].
push_back
(
backref
(
p
[
j
])
);
...
...
@@ -180,7 +180,7 @@ namespace xphoto
__pPath
[
i
]
+
cv
::
Point2i
(
-
1
,
0
)
};
for
(
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
for
(
u
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
if
(
p
[
j
].
y
<
src
.
rows
&&
p
[
j
].
y
>=
0
&&
p
[
j
].
x
<
src
.
cols
&&
p
[
j
].
x
>=
0
)
__linkIdx
[
i
].
push_back
(
backref
(
p
[
j
])
);
...
...
@@ -219,7 +219,7 @@ namespace xphoto
std
::
vector
<
cv
::
Vec
<
float
,
cn
>
>
pointVec
;
std
::
vector
<
uchar
>
maskVec
;
for
(
int
q
=
0
;
q
<
sizeof
(
dv
)
/
sizeof
(
cv
::
Point2i
);
++
q
)
for
(
u
int
q
=
0
;
q
<
sizeof
(
dv
)
/
sizeof
(
cv
::
Point2i
);
++
q
)
if
(
u
.
x
+
dv
[
q
].
x
>=
0
&&
u
.
x
+
dv
[
q
].
x
<
img
.
cols
&&
u
.
y
+
dv
[
q
].
y
>=
0
&&
u
.
y
+
dv
[
q
].
y
<
img
.
rows
)
{
...
...
@@ -252,7 +252,7 @@ namespace xphoto
}
for
(
in
t
i
=
0
;
i
<
pPath
.
size
();
++
i
)
for
(
size_
t
i
=
0
;
i
<
pPath
.
size
();
++
i
)
{
cv
::
Point2i
p
[]
=
{
pPath
[
i
]
+
cv
::
Point2i
(
0
,
+
1
),
...
...
@@ -261,7 +261,7 @@ namespace xphoto
std
::
vector
<
int
>
linkVec
;
for
(
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
for
(
u
int
j
=
0
;
j
<
sizeof
(
p
)
/
sizeof
(
cv
::
Point2i
);
++
j
)
if
(
p
[
j
].
y
<
src
.
rows
&&
p
[
j
].
y
>=
0
&&
p
[
j
].
x
<
src
.
cols
&&
p
[
j
].
x
>=
0
)
linkVec
.
push_back
(
__backref
(
p
[
j
])
);
...
...
modules/xphoto/src/photomontage.hpp
View file @
877f2f35
...
...
@@ -50,12 +50,11 @@
#include <time.h>
#include <functional>
#include "norm2.hpp"
#include "blending.hpp"
namespace
gcoptimization
{
#include "norm2.hpp"
#include "blending.hpp"
#include "gcgraph.hpp"
...
...
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