File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
neuroglancer_utils/create_datasets Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 22from neuroglancer_utils .create_datasets .create_sphere import create_sphere
33from neuroglancer_utils .create_datasets .create_allen_multi import create_allen_multi
44from neuroglancer_utils .create_datasets .create_cdf_example import create_cdf_example
5+ from neuroglancer_utils .create_datasets .create_border_data import create_border_example
56from neuroglancer_utils .local_server import create_server
67
78create_cube ()
89create_sphere ()
910create_allen_multi ()
1011create_cdf_example ()
12+ create_border_example ()
1113create_server (directory = "datasets" )
1214input ("Press enter to continue" )
Original file line number Diff line number Diff line change 1+ from cloudvolume import CloudVolume
2+ import numpy as np
3+
4+
5+ def create_border_example (output_path = "file://datasets/border" ):
6+ shape = (40 ,) * 3
7+ data = np .zeros (shape = shape , dtype = np .uint8 )
8+ data [4 :36 , 4 :36 , 4 :36 ] = 10
9+ CloudVolume .from_numpy (
10+ data ,
11+ vol_path = output_path ,
12+ resolution = (40 , 40 , 40 ),
13+ chunk_size = (32 , 32 , 32 ),
14+ layer_type = "image" ,
15+ progress = True ,
16+ compress = False ,
17+ )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def create_cdf_example(output_path="file://datasets/cdf"):
1313 data ,
1414 vol_path = output_path ,
1515 resolution = (40 , 40 , 40 ),
16- chunk_size = (40 , 40 , 40 ),
16+ chunk_size = (32 , 32 , 32 ),
1717 layer_type = "image" ,
1818 progress = True ,
1919 compress = False ,
You can’t perform that action at this time.
0 commit comments