15 #include "vtkNIFTIImageReader.h" 16 #include "vtkMatrix4x4.h" 17 #include "vtkImageData.h" 30 sform_matrix = vtkMatrix4x4Ptr::New();
48 image->setVtkImageData(raw);
49 image->get_rMd_History()->setRegistration(rMd);
57 return this->
readInto(boost::dynamic_pointer_cast<Image>(data), filename);
64 reader->ReleaseDataFlagOn();
78 sform_matrix = reader->GetSFormMatrix();
83 return reader->GetOutput();
110 std::vector<DataPtr> retval;
118 image->setVtkImageData(raw);
119 image->get_rMd_History()->setRegistration(rMd);
122 retval.push_back(image);
DataPtr createData(QString type, QString filename, QString name="") const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
bool canWrite(const QString &type, const QString &filename) const
boost::shared_ptr< class Image > ImagePtr
bool canReadInternal(const QString &type, const QString &filename) const
cstring_cast_Placeholder cstring_cast(const T &val)
boost::shared_ptr< class Data > DataPtr
QString canWriteDataType() const
void write(DataPtr data, const QString &filename)
DataPtr read(const QString &uid, const QString &filename)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
static QString getTypeName()
bool readInto(ImagePtr image, QString filename)
vtkSmartPointer< class vtkNIFTIImageReader > vtkNIFTIImageReaderPtr
virtual vtkImageDataPtr loadVtkImageData(QString filename)
static bool checkedRead(vtkSmartPointer< vtkAlgorithm > reader, QString filename)
QString canReadDataType() const
NIfTIReader(PatientModelServicePtr patientModelService)
bool canRead(const QString &type, const QString &filename)
bool canWriteInternal(const QString &type, const QString &filename) const
Namespace for all CustusX production code.