Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medienverarbeitung17.projectmood
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Frank Tjado Ihmels
medienverarbeitung17.projectmood
Commits
4dc49d76
Commit
4dc49d76
authored
Nov 15, 2017
by
Arne Gerdes
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
95a0fb14
b6aa4577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
projectmood/experiments.py
projectmood/experiments.py
+5
-3
No files found.
projectmood/experiments.py
View file @
4dc49d76
...
...
@@ -8,12 +8,14 @@ cvhelper.createwindow("Original", original, 0, 0)
gray
=
cv2
.
cvtColor
(
original
,
cv2
.
COLOR_BGR2GRAY
)
hsv
=
cv2
.
cvtColor
(
original
,
cv2
.
COLOR_BGR2HSV
)
plt
.
hist
(
gray
.
ravel
(),
256
,
[
0
,
256
])
plt
.
show
()
ret
,
thresh1
=
cv2
.
threshold
(
gray
,
127
,
255
,
cv2
.
THRESH_BINARY
)
cvhelper
.
createwindow
(
"Gray"
,
gray
,
100
)
cvhelper
.
createwindow
(
"HSV"
,
hsv
,
200
)
cvhelper
.
createwindow
(
"Threshold"
,
thresh1
,
300
)
plt
.
hist
(
gray
.
ravel
(),
256
,
[
0
,
256
])
plt
.
show
()
k
=
cv2
.
waitKey
(
0
)
...
...
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