1.转-matlab读åhdf5
转-matlab读åhdf5
MATLAB读åhdfæ件
ments'
Dataset'comments'
Size:
MaxSize:
Datatype: H5T_STRING
StringLength: variable
Padding: H5T_STR_NULLTERM
CharacterSet: H5T_CSET_UTF8
Character Type: H5T_C_S1
ChunkSize: []
Filters: none
Dataset'target_ids'
Size:
MaxSize:
Datatype: H5T_STD_ULE (uint)
ChunkSize: []
Filters: none
FillValue:0
Group'/annotations/presynaptic_site'
Dataset'partners'
Size:2x
MaxSize:2x
Datatype: H5T_STD_ULE (uint)
ChunkSize: []
Filters: none
FillValue:0
Group '/volumes'
Dataset 'raw'
Size:xx
MaxSize:xx
Datatype: H5T_STD_U8LE (uint8)
ChunkSize:xx7
Filters: deflate(4)
Attributes:
'resolution': . 4. 4.
Group'/volumes/labels'
Dataset'clefts'
Size:xx
MaxSize:xx
Datatype: H5T_STD_ULE (uint)
ChunkSize:xx4
Filters: deflate(4)
Attributes:
'resolution': . 4. 4.
'offset': . . .
Dataset'neuron_ids'
Size:xx
MaxSize:xx
Datatype: H5T_STD_ULE (uint)
ChunkSize:xx4
Filters: deflate(4)
Attributes:
'resolution': . 4. 4.
'offset': . . .
1
2. 读åhdfæ件ä¸çæ°æ®
data= h5read('æ件å.hdf',码下手机cpa引流源码'æ°æ®éå');
1
ä¾å¦ï¼
raw = h5read('dataset/sample_A_padded_.hdf',' /volumes/raw ');
1
3. 读åæ°æ®éçå±æ§
attribute = h5readatt('æ件å.hdf','æ°æ®éå','å±æ§å');
1
ä¾å¦ï¼
resolution = h5readatt('dataset/sample_A_padded_.hdf','/volumes/raw','resolution');
1
4. å建hdfæ件
h5create('æ件å.hdf','æ°æ®éå', æ°æ®å¤§å°,'Datatype','æ°æ®ç±»å');
1
ä¾å¦ï¼
h5create('downs_dataset/downsample_A_padded_.hdf','/volumes/raw', size_downs_raw,'Datatype','uint8');
1
5. å¾æ°å»ºçhdfä¸åå ¥æ°æ®
h5write('æ件å.hdf','æ°æ®éå', æ°æ®åé);
1
ä¾å¦ï¼
h5write('downs_dataset/downsample_A_padded_.hdf','/volumes/raw', downs_raw);
1
6. ç»æ°æ®éåå±æ§
h5writeatt('æ件å.hdf','æ°æ®éå','å±æ§å', å±æ§åé);
1
ä¾å¦ï¼
h5writeatt('downs_dataset/downsample_A_padded_.hdf','/volumes/raw','resolution', resolution);
1
2024-11-26 15:43
2024-11-26 15:11
2024-11-26 15:00
2024-11-26 14:24
2024-11-26 13:31
2024-11-26 13:29