Skip to contents

This function extracts a sample from a given dataset object.

Usage

data_sample(obj, vox)

Arguments

obj

The input dataset object, which should be an instance of a data class compatible with sample extraction.

vox

the voxel indices/coordinates associated with the data sample.

...

Additional arguments to be passed to the specific sample extraction method for the input object's class.

Value

A sample extracted from the input dataset based on the specific extraction method.