コード例 #1
0
ファイル: test_graphs.py プロジェクト: andromeda0505/pygsp
 def test_grid2dimgpatches(self):
     graphs.Grid2dImgPatches(img=self._img, patch_shape=(3, 3))
コード例 #2
0
ファイル: test_graphs.py プロジェクト: dsacc/pygsp
 def test_Grid2dImgPatches():
     from skimage import data, img_as_float
     img = img_as_float(data.camera()[::16, ::16])
     G = graphs.Grid2dImgPatches(img=img, patch_shape=(3, 3))