Created
March 2, 2016 13:48
-
-
Save fbudin69500/e58cf629cc6069b3cdcc to your computer and use it in GitHub Desktop.
Create, Save, Load Images with ITK in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import itk | |
import tempfile | |
import os | |
def pixel_type_from_IO(pixel, component,dimension): | |
import itk | |
if pixel == 'scalar': | |
PixelType = component | |
elif pixel == 'rgb': | |
PixelType = itk.RGBPixel[component] | |
elif pixel == 'rgba': | |
PixelType = itk.RGBAPixel[component] | |
elif pixel == 'offset': | |
PixelType = itk.Offset[dimension] | |
elif pixel == 'vector': | |
PixelType = itk.Vector[component,dimension] | |
elif pixel == 'point': | |
PixelType = itk.Point[component,dimension] | |
elif pixel == 'covariantvector': | |
PixelType = itk.CovariantVector[component,dimension] | |
elif pixel == 'symmetricsecondranktensor': | |
PixelType = itk.SymmetricSecondRankTensor[component,dimension] | |
elif pixel == 'diffusiontensor3d': | |
PixelType = itk.DiffusionTensor3D[component] | |
elif pixel == 'complex': | |
PixelType = itk.complex[component] | |
elif pixel == 'fixedarray': | |
PixelType = itk.FixedArray[component,dimension] | |
elif pixel == 'matrix': | |
PixelType = itk.Matrix[component,dimension,dimension] | |
else: | |
raise RuntimeError("Unknown pixel type.") | |
return PixelType | |
dimensions = [2,3] | |
component_type_dic= {"float":itk.F, "double":itk.D, | |
"unsigned_char":itk.UC, "unsigned_short":itk.US, "unsigned_int":itk.UI, | |
"unsigned_long":itk.UL, "signed_char":itk.SC, "signed_short":itk.SS, | |
"signed int":itk.SI, "signed_long":itk.SL, "bool":itk.B} | |
pixel_types = ['scalar', 'rgb', 'rgba', 'offset', 'vector', 'point', 'covariantvector', 'symmetricsecondranktensor', 'diffusiontensor3d', 'complex', 'fixedarray', 'matrix'] | |
dir_name=tempfile.mkdtemp() | |
pixel_type_error = [] | |
image_error = [] | |
other_error = [] | |
writer_error = [] | |
reader_error = [] | |
writer2_error = [] | |
pixel_fill_error = [] | |
for dim in dimensions: | |
for p in pixel_types: | |
for c,cv in component_type_dic.items(): | |
try: | |
PixelType = pixel_type_from_IO(p,cv,dim) | |
except Exception as ex: | |
pixel_type_error.append(ex) | |
continue | |
try: | |
ImageType=itk.Image[PixelType,dim] | |
im=ImageType.New() | |
except Exception as ex: | |
image_error.append(ex) | |
continue | |
try: | |
zero_value = itk.NumericTraits[PixelType].ZeroValue() | |
except: | |
try: | |
zero_value = PixelType() | |
zero_value.Fill(0) | |
except: | |
try: | |
zero_value = PixelType(0) | |
except Exception as ex: | |
pixel_fill_error.append(ex) | |
try: | |
im.SetRegions(5) | |
im.Allocate() | |
im.FillBuffer( zero_value ) | |
filename = os.path.join(dir_name, "_".join([p,c,str(dim)])+".nrrd") | |
except Exception as ex: | |
other_error.append(ex) | |
continue | |
try: | |
writer = itk.ImageFileWriter.New(Input=im, FileName=filename) | |
writer.Update() | |
except Exception as ex: | |
writer_error.append(str(ex) + " - " +str([p,c,dim])) | |
continue | |
try: | |
reader = itk.ImageFileReader.New(FileName=filename) | |
reader.Update() | |
except Exception as ex: | |
reader_error.append(ex) | |
continue | |
try: | |
filename = os.path.join(dir_name, "_".join([p,c,str(dim),"copy"])+".nrrd") | |
writer = itk.ImageFileWriter.New(Input=reader, FileName=filename) | |
writer.Update() | |
print "%i ; %s ; %s - OK"%(dim,p,c) | |
except Exception as ex: | |
writer2_error.append(ex) | |
pass | |
def PrintError(name,list_error): | |
print name | |
for i in list_error: | |
print i | |
PrintError("Pixel Error", pixel_type_error) | |
PrintError("Pixel Fill Error:", pixel_fill_error) | |
PrintError("Image Error: ", image_error) | |
PrintError("Other Error: ", other_error) | |
PrintError("Writer Error: ", writer_error) | |
PrintError("Reader Error: ", reader_error) | |
PrintError("Writer2 Error: ", writer2_error) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 ; scalar ; float - OK | |
2 ; scalar ; unsigned_char - OK | |
2 ; scalar ; signed_short - OK | |
2 ; rgb ; unsigned_char - OK | |
2 ; rgba ; unsigned_char - OK | |
2 ; vector ; float - OK | |
2 ; covariantvector ; float - OK | |
2 ; complex ; float - OK | |
3 ; scalar ; float - OK | |
3 ; scalar ; unsigned_char - OK | |
3 ; scalar ; signed_short - OK | |
3 ; rgb ; unsigned_char - OK | |
3 ; rgba ; unsigned_char - OK | |
3 ; vector ; float - OK | |
3 ; covariantvector ; float - OK | |
3 ; complex ; float - OK | |
Pixel Error | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::RGBAPixel class' | |
'itkTemplate : No template (<itkCType unsigned long>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned short>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed char>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed long>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType bool>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned long>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned short>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed char>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned char>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed long>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed short>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType bool>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned long>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned short>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed char>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned char>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed long>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed short>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType bool>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned long>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned short>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed char>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned char>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed long>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed short>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType bool>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned char>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed int>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed char>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned char>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed long>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed short>] for the std::complex class' | |
'itkTemplate : No template [<itkCType bool>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the std::complex class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::FixedArray class' | |
'itkTemplate : No template (<itkCType unsigned long>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned short>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed int>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed char>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned char>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed long>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed short>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType bool>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2, 2) for the itk::Matrix class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::RGBPixel class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::RGBAPixel class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::RGBAPixel class' | |
'itkTemplate : No template (<itkCType unsigned long>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed char>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType signed long>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType bool>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3) for the itk::Vector class' | |
'itkTemplate : No template (<itkCType unsigned long>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed char>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned char>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed long>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType signed short>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType bool>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3) for the itk::Point class' | |
'itkTemplate : No template (<itkCType unsigned long>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed char>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned char>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed long>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType signed short>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType bool>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3) for the itk::CovariantVector class' | |
'itkTemplate : No template (<itkCType unsigned long>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed char>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned char>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed long>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType signed short>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType bool>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3) for the itk::SymmetricSecondRankTensor class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed int>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed char>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned char>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed long>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType signed short>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType bool>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the itk::DiffusionTensor3D class' | |
'itkTemplate : No template [<itkCType unsigned long>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned short>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed int>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed char>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned char>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed long>] for the std::complex class' | |
'itkTemplate : No template [<itkCType signed short>] for the std::complex class' | |
'itkTemplate : No template [<itkCType bool>] for the std::complex class' | |
'itkTemplate : No template [<itkCType unsigned int>] for the std::complex class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::FixedArray class' | |
'itkTemplate : No template (<itkCType unsigned long>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned short>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed int>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed char>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned char>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed long>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType signed short>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType bool>, 3, 3) for the itk::Matrix class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3, 3) for the itk::Matrix class' | |
Pixel Fill Error: | |
Image Error: | |
'itkTemplate : No template (<itkCType unsigned short>, 2) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed int>, 2) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed char>, 2) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed long>, 2) for the itk::Image class' | |
'itkTemplate : No template (<itkCType unsigned int>, 2) for the itk::Image class' | |
"itkTemplate : No template (<class 'itkRGBPixelPython.itkRGBPixelF'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBPixelPython.itkRGBPixelD'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBAPixelPython.itkRGBAPixelF'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBAPixelPython.itkRGBAPixelD'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkVectorPython.itkVectorUC2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkVectorPython.itkVectorSS2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkPointPython.itkPointF2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkPointPython.itkPointD2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkSymmetricSecondRankTensorPython.itkSymmetricSecondRankTensorF2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkDiffusionTensor3DPython.itkDiffusionTensor3DF'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkDiffusionTensor3DPython.itkDiffusionTensor3DD'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'vcl_complexPython.vcl_complexD'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUL2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUS2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySC2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUC2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySL2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySS2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayD2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayB2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUI2'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkMatrixPython.itkMatrixF22'>, 2) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkMatrixPython.itkMatrixD22'>, 2) for the itk::Image class" | |
'itkTemplate : No template (<itkCType unsigned short>, 3) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed int>, 3) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed char>, 3) for the itk::Image class' | |
'itkTemplate : No template (<itkCType signed long>, 3) for the itk::Image class' | |
'itkTemplate : No template (<itkCType unsigned int>, 3) for the itk::Image class' | |
"itkTemplate : No template (<class 'itkRGBPixelPython.itkRGBPixelF'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBPixelPython.itkRGBPixelD'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBAPixelPython.itkRGBAPixelF'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkRGBAPixelPython.itkRGBAPixelD'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkVectorPython.itkVectorUC3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkVectorPython.itkVectorSS3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkPointPython.itkPointF3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkPointPython.itkPointD3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkSymmetricSecondRankTensorPython.itkSymmetricSecondRankTensorF3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkDiffusionTensor3DPython.itkDiffusionTensor3DF'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkDiffusionTensor3DPython.itkDiffusionTensor3DD'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'vcl_complexPython.vcl_complexD'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUL3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUS3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySC3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUC3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySL3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArraySS3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayD3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayB3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkFixedArrayPython.itkFixedArrayUI3'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkMatrixPython.itkMatrixF33'>, 3) for the itk::Image class" | |
"itkTemplate : No template (<class 'itkMatrixPython.itkMatrixD33'>, 3) for the itk::Image class" | |
Other Error: | |
Writer Error: | |
No suitable template parameter can be found. - ['scalar', 'unsigned_long', 2] | |
No suitable template parameter can be found. - ['scalar', 'double', 2] | |
No suitable template parameter can be found. - ['scalar', 'bool', 2] | |
No suitable template parameter can be found. - ['offset', 'float', 2] | |
No suitable template parameter can be found. - ['offset', 'unsigned_long', 2] | |
No suitable template parameter can be found. - ['offset', 'unsigned_short', 2] | |
No suitable template parameter can be found. - ['offset', 'signed int', 2] | |
No suitable template parameter can be found. - ['offset', 'signed_char', 2] | |
No suitable template parameter can be found. - ['offset', 'unsigned_char', 2] | |
No suitable template parameter can be found. - ['offset', 'signed_long', 2] | |
No suitable template parameter can be found. - ['offset', 'signed_short', 2] | |
No suitable template parameter can be found. - ['offset', 'double', 2] | |
No suitable template parameter can be found. - ['offset', 'bool', 2] | |
No suitable template parameter can be found. - ['offset', 'unsigned_int', 2] | |
No suitable template parameter can be found. - ['vector', 'double', 2] | |
No suitable template parameter can be found. - ['covariantvector', 'double', 2] | |
No suitable template parameter can be found. - ['symmetricsecondranktensor', 'double', 2] | |
No suitable template parameter can be found. - ['fixedarray', 'float', 2] | |
No suitable template parameter can be found. - ['scalar', 'unsigned_long', 3] | |
No suitable template parameter can be found. - ['scalar', 'double', 3] | |
No suitable template parameter can be found. - ['scalar', 'bool', 3] | |
No suitable template parameter can be found. - ['offset', 'float', 3] | |
No suitable template parameter can be found. - ['offset', 'unsigned_long', 3] | |
No suitable template parameter can be found. - ['offset', 'unsigned_short', 3] | |
No suitable template parameter can be found. - ['offset', 'signed int', 3] | |
No suitable template parameter can be found. - ['offset', 'signed_char', 3] | |
No suitable template parameter can be found. - ['offset', 'unsigned_char', 3] | |
No suitable template parameter can be found. - ['offset', 'signed_long', 3] | |
No suitable template parameter can be found. - ['offset', 'signed_short', 3] | |
No suitable template parameter can be found. - ['offset', 'double', 3] | |
No suitable template parameter can be found. - ['offset', 'bool', 3] | |
No suitable template parameter can be found. - ['offset', 'unsigned_int', 3] | |
No suitable template parameter can be found. - ['vector', 'double', 3] | |
No suitable template parameter can be found. - ['covariantvector', 'double', 3] | |
No suitable template parameter can be found. - ['symmetricsecondranktensor', 'double', 3] | |
No suitable template parameter can be found. - ['fixedarray', 'float', 3] | |
Reader Error: | |
Writer2 Error: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment