mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-16 11:21:25 +08:00
11 lines
265 B
Python
11 lines
265 B
Python
import os.path
|
|
import numpy as np
|
|
|
|
from scikits.image import data_dir
|
|
from scikits.image.io import imread
|
|
|
|
def test_imread():
|
|
img = imread(os.path.join(data_dir, 'camera.png'), dtype=np.float32)
|
|
print img.dtype, type(img)
|
|
assert img.dtype == np.float32
|