This function creates a temporary HDF5 file with a minimal structure
that can be read by read_labeled_vec
to produce a LabeledVolumeSet
.
Usage
create_minimal_h5_for_LabeledVolumeSet(
vol_dims = c(4L, 4L, 3L),
labels = c("Set1", "Set2"),
num_vols_per_label = 1L,
file_path = NULL
)
Arguments
- vol_dims
3D spatial dimensions for each volume, e.g., c(4L, 4L, 3L).
- labels
A character vector of labels, e.g., c("ConditionA", "ConditionB").
- num_vols_per_label
Integer, number of volumes to generate for each label.
- file_path
Optional: path to HDF5 file. If NULL
, a temp file is created.
Value
Path to the created HDF5 file.
Details
Refer to write_labeled_vec
and read_labeled_vec
for the expected structure.