Version 22.4.0
·
93 commits
to master
since this release
- Add command line tool for resampling a dataset, with entrypoint: resample (and unit tests)
- Add
ImageReader:- Generic reader for reading to vtkImageData
- Reads: HDF5, MetaImage, Numpy, Raw, TIFF stacks
- Supports resampling OR cropping the dataset whilst reading.
- Add
ImageWriter:- Writer for writing out a modified i.e. resampled or cropped dataset.
- Supports writing to HDF5 and metaimage.
- Add
ImageWriterInterface:- Interface for writers, with methods for setting and getting information about modified
(i.e. resampled or cropped) image data to write to a file.
- Interface for writers, with methods for setting and getting information about modified
- Add
cilviewerHDF5Writer:- This is a writer which expects to be writing an original dataset or attributes of the original dataset,
plus one or more 'child' versions of the dataset which have been resampled and/or cropped. - Stores the information needed to reload a resampled or cropped dataset on the viewer.
- This is a writer which expects to be writing an original dataset or attributes of the original dataset,
- Add
cilviewerHDF5Reader:- for reading datasets generated by the cilviewerHDF5Writer.
- Add new requirements:
schemapyyaml
- Examples:
examples/image_reader_and_writer.pyis an example of using theImageReaderandImageWriterexamples/opacity_in_viewer.pyupdated to use head dataset fromutils/example_data.py
- Unit tests for all of the new readers and writers.
- Removed obsolete TIFF code from conversion.py. The following have been removed:
vtkTiffStack2numpytiffStack2numpytiffStack2numpyEnforceBounds_tiffStack2numpynormalizehighest_tuple_element
- Fixed cilTIFFResampler so that if original TIFF file has a set spacing and origin, this is taken into account when resampling.
- Fixed bug in
iviewerwith display of volume render. - iviewer now shows gradient opacity volume render of head dataset from
utils/example_data.pyby default. - Fix bug in CILViewer if volume render method is adjusted before volume render turned on.