def setUp(self): from SampleData import 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.vtkTeemNRRDReader() self.rnrrd.SetFileName(self.file_name) self.rnrrd.Update()
def setUp(self): from SampleData import 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 = vtkTeem.vtkTeemNRRDReader() self.rnrrd.SetFileName(self.file_name) self.rnrrd.Update()
def setUp(self): import SampleData sampleDataLogic = SampleData.SampleDataLogic() dti = sampleDataLogic.downloadDTIBrain() self.file_name = dti.GetStorageNode().GetFileName() 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 = slicer.vtkNRRDReader() self.rnrrd.SetFileName(self.file_name) self.rnrrd.Update()
def setUp(self): import SampleData sampleDataLogic = SampleData.SampleDataLogic() dti = sampleDataLogic.downloadDTIBrain() self.file_name = dti.GetStorageNode().GetFileName() 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 = slicer.vtkNRRDReader() self.rnrrd.SetFileName(self.file_name) self.rnrrd.Update()