Import 2017-06-07 23:51:09: master fa2af0be

Author Committer Branch Timestamp Parent
agirault agirault master 2017-04-18 18:14:22 master 54d5d709
Changeset

ENH: Add support to read scalar range from header file

Offer a way to use the min/max information from the volume file meta data
to speed up the data loading.

Multiple file formats define properties in the header file to store the
scalar range, and ITK adds these info to the metadata dictionary that can
be retrieved using itkObject::GetMetaDataDictionary() :

Nifti (nii) - [cal_min, cal_max]

Those scalar range values are retrieved and stored in
vtkITKArchetypeImageSeriesReader::RequestInformation
then set up in the image data point data scalars information in
vtkITKArchetypeImageSeriesReader::SetMetaDataScalarRangeToPointDataInfo,
called from its subclasses from ExecuteDataWithInformation
or RequestData.

From: Alexis Girault <alexis.girault@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25938 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/vtkITK/vtkITKArchetypeDiffusionTensorImageReaderFile.cxx Diff File
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx Diff File
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesReader.h Diff File
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesScalarReader.cxx Diff File
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesVectorReaderFile.cxx Diff File
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesVectorReaderSeries.cxx Diff File