Skip to content

Version 22.4.0

Compare
Choose a tag to compare
@lauramurgatroyd lauramurgatroyd released this 19 Aug 10:42
· 76 commits to master since this release
70b1f28
  • 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.
  • 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.
  • Add cilviewerHDF5Reader:
    • for reading datasets generated by the cilviewerHDF5Writer.
  • Add new requirements:
    • schema
    • pyyaml
  • Examples:
    • examples/image_reader_and_writer.py is an example of using the ImageReader and ImageWriter
    • examples/opacity_in_viewer.py updated to use head dataset from utils/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:
    • vtkTiffStack2numpy
    • tiffStack2numpy
    • tiffStack2numpyEnforceBounds
    • _tiffStack2numpy
    • normalize
    • highest_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 iviewer with display of volume render.
  • iviewer now shows gradient opacity volume render of head dataset from utils/example_data.py by default.
  • Fix bug in CILViewer if volume render method is adjusted before volume render turned on.