Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GEPARD
GEPARD
Commits
5a00f3f8
Commit
5a00f3f8
authored
Aug 31, 2020
by
Josef Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in Imagestitch
parent
5e79c241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
imagestitch.py
imagestitch.py
+2
-4
No files found.
imagestitch.py
View file @
5a00f3f8
...
...
@@ -24,17 +24,15 @@ import numpy as np
def
imageStacking
(
colimgs
):
full
=
[]
images
=
[]
laplacians
=
[]
for
img
in
colimgs
:
gray
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_BGR2GRAY
)
lap
=
cv2
.
Laplacian
(
gray
,
cv2
.
CV_64F
)
lap
=
cv2
.
Laplacian
(
gray
,
cv2
.
CV_64F
,
ksize
=
7
)
full
.
append
(
img
)
images
.
append
(
gray
)
blurlap
=
(
cv2
.
GaussianBlur
((
lap
)
**
2
,(
25
,
25
),
0
))
laplacians
.
append
(
blurlap
)
images
=
np
.
array
(
images
)
laplacians
=
np
.
array
(
laplacians
)
full
=
np
.
array
(
full
)
full
=
np
.
uint8
(
full
)
...
...
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