19#ifndef __vtkITKImageSequenceReader_h
20#define __vtkITKImageSequenceReader_h
22#include "vtkMedicalImageReader2.h"
24#include "vtkMatrix4x4.h"
34 void PrintSelf(ostream& os, vtkIndent indent)
override;
80 const char* attributeValue,
81 std::vector<std::string>& attributeNames,
82 std::vector<std::vector<std::string>>& frameAttributeValues);
vtkMatrix4x4 * RasToIjkMatrix
RAS to IJK matrix.
const char * GetAxisUnit(unsigned int axis)
Get unit for specified axis.
std::map< unsigned int, std::string > AxisUnits
void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo) override
static bool ParseAndStoreSequenceItemMetadata(const std::string &key, const char *attributeValue, std::vector< std::string > &attributeNames, std::vector< std::vector< std::string > > &frameAttributeValues)
vtkImageData * GetCachedImage(unsigned int index)
std::map< unsigned int, std::string > AxisLabels
std::map< std::string, std::string > HeaderKeyValueMap
Key/value pairs read from the header.
std::string SequenceAxisLabel
void PrintSelf(ostream &os, vtkIndent indent) override
const std::map< std::string, std::string > GetHeaderKeysMap()
Get the map of keys in the header.
unsigned int CurrentFrameIndex
Current frame index that is extracted from the sequence image to the output port.
static std::string FormatSequenceItemMetadataKey(unsigned int axisIndex, unsigned int frameIndex, const std::string &attributeName)
unsigned int NumberOfFrames
Number of frames in recently read image. Set in first Update. Read only.
const char * GetAxisLabel(unsigned int axis)
Get label for specified axis.
std::string SequenceAxisUnit
static bool ParseSequenceItemMetadataKey(const std::string &key, unsigned int &axisIndex, unsigned int &frameIndex, std::string &attributeName)
~vtkITKImageSequenceReader() override
vtkITKImageSequenceReader()
static vtkITKImageSequenceReader * New()
const std::vector< std::string > GetHeaderKeysVector()
Get the list of keys in the header.
const char * GetHeaderValue(const char *key)
Get a value given a key in the header.
std::vector< vtkSmartPointer< vtkImageData > > CachedImages
unsigned int GetNumberOfCachedImages()
@ VoxelVectorTypeUndefined