def setUp(self):
        import SampleData
        sampleDataLogic = SampleData.SampleDataLogic()
        dtiSource = sampleDataLogic.sourceForSampleName('DTIBrain')
        self.file_name = sampleDataLogic.downloadSourceIntoCache(dtiSource)[0]

        self.ritk = vtkITK.vtkITKArchetypeDiffusionTensorImageReaderFile()
        self.ritk.SetUseOrientationFromFile(True)
        self.ritk.SetUseNativeOriginOn();
        self.ritk.SetOutputScalarTypeToNative()
        self.ritk.SetDesiredCoordinateOrientationToNative()
        self.ritk.SetArchetype(self.file_name)
        self.ritk.Update()

        self.rnrrd = teem.vtkNRRDReader()
        self.rnrrd.SetFileName(self.file_name)
        self.rnrrd.Update()
    def setUp(self):
        import SampleData

        sampleDataLogic = SampleData.SampleDataLogic()
        dtiSource = sampleDataLogic.sourceForSampleName("DTIBrain")
        self.file_name = sampleDataLogic.downloadSourceIntoCache(dtiSource)[0]

        self.ritk = vtkITK.vtkITKArchetypeDiffusionTensorImageReaderFile()
        self.ritk.SetUseOrientationFromFile(True)
        self.ritk.SetUseNativeOriginOn()
        self.ritk.SetOutputScalarTypeToNative()
        self.ritk.SetDesiredCoordinateOrientationToNative()
        self.ritk.SetArchetype(self.file_name)
        self.ritk.Update()

        self.rnrrd = teem.vtkNRRDReader()
        self.rnrrd.SetFileName(self.file_name)
        self.rnrrd.Update()
    def setUp(self):
        import SampleData
        sampleDataLogic = SampleData.SampleDataLogic()
        brainSource = sampleDataLogic.sourceForSampleName('MRHead')
        self.file_name = sampleDataLogic.downloadSourceIntoCache(
            brainSource)[0]

        self.ritk = vtkITK.vtkITKArchetypeImageSeriesScalarReader()
        self.ritk.SetUseOrientationFromFile(True)
        self.ritk.SetUseNativeOriginOn()
        self.ritk.SetOutputScalarTypeToNative()
        self.ritk.SetDesiredCoordinateOrientationToNative()
        self.ritk.SetArchetype(self.file_name)
        self.ritk.Update()

        self.rnrrd = teem.vtkNRRDReader()
        self.rnrrd.SetFileName(self.file_name)
        self.rnrrd.Update()

        self.assertTrue(
            compare_vtk_matrix(self.ritk.GetRasToIjkMatrix(),
                               self.rnrrd.GetRasToIjkMatrix()))
    def setUp(self):
        import SampleData
        sampleDataLogic = SampleData.SampleDataLogic()
        brainSource = sampleDataLogic.sourceForSampleName('MRHead')
        self.file_name = sampleDataLogic.downloadSourceIntoCache(brainSource)[0]

        self.ritk = vtkITK.vtkITKArchetypeImageSeriesScalarReader()
        self.ritk.SetUseOrientationFromFile(True)
        self.ritk.SetUseNativeOriginOn();
        self.ritk.SetOutputScalarTypeToNative()
        self.ritk.SetDesiredCoordinateOrientationToNative()
        self.ritk.SetArchetype(self.file_name)
        self.ritk.Update()

        self.rnrrd = teem.vtkNRRDReader()
        self.rnrrd.SetFileName(self.file_name)
        self.rnrrd.Update()

        self.assertTrue(
            compare_vtk_matrix(
                self.ritk.GetRasToIjkMatrix(),
                self.rnrrd.GetRasToIjkMatrix()
            )
        )