☰
Debian Codegraph
@
1.7.6+ds-3
/
/
tests
/
color_tests
/
test_asgray.py
☽
☼
tests/color_tests/test_asgray.py
code
plain
raw
symbols
SCIP
MIT
2018-2023 Kentaro Wada
debian/copyright
1
import
numpy
as
np
2
3
import
imgviz
4
5
6
def
test_asgray
():
7
data = imgviz.
data
.
arc2017
()
8
gray = imgviz.
asgray
(data[
"rgb"
])
9
10
assert
gray.
ndim
==
2
11
assert
gray.
dtype
== np.
uint8