18#ifndef itkTrxStreamWriter_h
19#define itkTrxStreamWriter_h
21#include "TractographyTRXExport.h"
29#include "vnl/vnl_matrix.h"
72 itkGetConstMacro(UseCompression,
bool);
73 itkBooleanMacro(UseCompression);
77 itkGetConstMacro(PositionsBufferMaxBytes,
size_t);
99 const std::map<std::string, double> & dpsValues = {},
100 const std::map<std::string, std::vector<double>> & dpvValues = {},
101 const std::vector<std::string> & groupNames = {});
106 const std::map<std::string, double> & dpsValues = {},
107 const std::map<std::string, std::vector<double>> & dpvValues = {},
108 const std::vector<std::string> & groupNames = {});
133 size_t pointCount)
const;
152 struct TrxStreamImpl;
158 std::map<std::string, FieldSpec>
m_Dps;
159 std::map<std::string, FieldSpec>
m_Dpv;
160 std::map<std::string, std::vector<uint32_t>>
m_Groups;
Simulate a standard C array with copy semantics.
A templated class holding a M x N size Matrix.
A templated class holding a geometric point in n-Dimensional space.
Implements transparent reference counting.
void SetFileName(const std::string &filename)
DimensionsType m_Dimensions
std::unique_ptr< TrxStreamImpl > m_Stream
void PushStreamline(const vnl_matrix< double > &points, const std::map< std::string, double > &dpsValues={}, const std::map< std::string, std::vector< double > > &dpvValues={}, const std::vector< std::string > &groupNames={})
SmartPointer< const Self > ConstPointer
Matrix< double, 4, 4 > MatrixType
vcl_size_t m_PositionsBufferMaxBytes
FixedArray< uint16_t, 3 > DimensionsType
std::vector< PointType > StreamlineType
itk::Point< double, 3 > PointType
std::map< std::string, FieldSpec > m_Dpv
std::map< std::string, FieldSpec > m_Dps
void SetVoxelToRasMatrix(const MatrixType &matrix)
std::vector< float > FlattenPointsToRas(const vnl_matrix< double > &points) const
std::map< std::string, std::vector< uint32_t > > m_Groups
std::vector< float > FlattenPointsToRas(const StreamlineType &points) const
~TrxStreamWriter() override
MatrixType m_VoxelToLpsMatrix
void PushStreamline(const StreamlineType &points, const std::map< std::string, double > &dpsValues={}, const std::map< std::string, std::vector< double > > &dpvValues={}, const std::vector< std::string > &groupNames={})
void ValidateDpvValues(const std::map< std::string, std::vector< double > > &dpvValues, vcl_size_t pointCount) const
void SetDimensions(const DimensionsType &dims)
void RegisterDpvField(const std::string &name, const std::string &dtype)
void RegisterDpsField(const std::string &name, const std::string &dtype)
void ValidateDpsValues(const std::map< std::string, double > &dpsValues) const
MatrixType m_VoxelToRasMatrix
SmartPointer< Self > Pointer
vcl_size_t m_StreamlineCount
void SetVoxelToLpsMatrix(const MatrixType &matrix)
const std::string & GetFileName() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)
std::vector< double > values