Is there support in ITK for random access to image data?
Specifically, I’m trying to figure out if it’s possible to read in a single input volume from a 4D time series, without reading the entire 4D array from disk.
This relates to a feature request for ANTs
It depends on the file format. In ITK this is called “streaming” and in particular IO streaming. For the NIFTI file format the support is very good.
This can be done by connecting an ExtractImageFilter to the output of an ImageFileReader. Then calling
Update in the extractor. The ITK pipeline should take care for the rest.
This looks like exactly what we need, thank you!