You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scalar dataspaces (rank 0) are returned as one dimensional image with one element.
112
110
111
+
.. cpp:function:: image h5_read_dataset_slice1(string filename, string location, TagGroup offset, number dim0, number count0, number stride0)
112
+
113
+
Reads 1D subset of dataset *location* from *filename*. This method can be used to read a one
114
+
dimensional slice along an arbitrary dimension from a higher dimensional dataset.
115
+
116
+
*offset* is a TagList of numbers, where the index of the first element of the returned
117
+
array for all dimensions of the dataset is given. The tag list must have a size corresponding
118
+
to the number of dimensions.
119
+
120
+
*dim0* is the dimension along which the slice is returned, *count0* the number of elements
121
+
in the slice. *stride0* the distance between adjacent elements in the returned slice (e.g. a
122
+
*stride0* of 2 will return only every second element).
123
+
124
+
Only some data types are supported (see :ref:`data-types-label`). For order of
125
+
dimensions see :ref:`data-spaces-label`. Strides must be > 0.
126
+
127
+
On failure an invalid image is returned.
128
+
129
+
.. cpp:function:: image h5_read_dataset_slice2(string filename, string location, TagGroup offset, number dim0, number count0, number stride0, number dim1, number count1, number stride1)
130
+
131
+
Reads 2D subset of dataset *location* from *filename*. This method can be used to read a two
132
+
dimensional slice along an arbitrary dimension from a higher dimensional dataset.
133
+
134
+
*offset* is a TagList of numbers, where the index of the first element of the returned
135
+
array for all dimensions of the dataset is given. The tag list must have a size corresponding
136
+
to the number of dimensions.
137
+
138
+
*dim0* is the X-dimension along which the slice is returned, *count0* the number of elements
139
+
in the slice. *stride0* the distance between adjacent elements in the returned slice (e.g. a
140
+
*stride0* of 2 will return only every second element).
141
+
142
+
*dim1* is the Y-dimension along which the slice is returned, *count1* the number of elements
143
+
in this direction. *stride1* the distance between adjacent elements.
144
+
145
+
Due to a limitation of the underlying HDF5 library the order of the dimensions must be
146
+
increasing, i.e. *dim0* < *dim1*. Using this call to transpose the dataset is not possible.
147
+
148
+
Only some data types are supported (see :ref:`data-types-label`). For order of
149
+
dimensions see :ref:`data-spaces-label`. Strides must be > 0.
150
+
151
+
On failure an invalid image is returned.
152
+
153
+
.. cpp:function:: image h5_read_dataset_slice3(string filename, string location, TagGroup offset, number dim0, number count0, number stride0, number dim1, number count1, number stride1, number dim2, number count2, number stride2)
154
+
155
+
Reads 3D subset of dataset *location* from *filename*. This method can be used to read a three
156
+
dimensional slice along an arbitrary dimension from a higher dimensional dataset.
157
+
158
+
*offset* is a TagList of numbers, where the index of the first element of the returned
159
+
array for all dimensions of the dataset is given. The tag list must have a size corresponding
160
+
to the number of dimensions.
161
+
162
+
*dim0* is the X-dimension along which the slice is returned, *count0* the number of elements
163
+
in the slice. *stride0* the distance between adjacent elements in the returned slice (e.g. a
164
+
*stride0* of 2 will return only every second element).
165
+
166
+
*dim1* is the Y-dimension along which the slice is returned, *count1* the number of elements
167
+
in this direction. *stride1* the distance between adjacent elements.
168
+
169
+
*dim2* is the Z-dimension along which the slice is returned, *count2* the number of elements
170
+
in this direction. *stride2* the distance between adjacent elements.
171
+
172
+
Due to a limitation of the underlying HDF5 library the order of the dimensions must be
173
+
increasing, i.e. *dim0* < *dim1* < *dim2*. Using this call to transpose the dataset is not possible.
174
+
175
+
Only some data types are supported (see :ref:`data-types-label`). For order of
176
+
dimensions see :ref:`data-spaces-label`. Strides must be > 0.
0 commit comments