[Paraview] Opening Tiff file in ParaView (by converting to raw)

Hal Canary hal at cs.unc.edu
Thu Aug 9 19:21:10 EDT 2012


On 08/09/2012 04:24 AM, james.walker at diamond.ac.uk wrote:
> I am trying to open some Tiff (.tif) files in ParaView, which contain
> an image sequence. I have converted the Tiff files to .raw format
> (using ImageJ) and opened them in ParaView using the "Raw (binary)
> Files" reader. But I am unable display the object, I get various
> errors been shown in the Output Messages window.
>
> Can anyone guide me of the values to be used in "Properties" tab for
> correctly interpreting a .tif file converted to .raw?
>
> I have uploaded one of the Tiff files I am using here:
> https://www.dropbox.com/s/39gr4ik03l8fmoh/nir_tomo.tif It was
> originally a 32bit Tiff file, but I converted it to 8bit to reduce
> the file size.
>
> Thanks for any help James
>

I tried opening the supplied tiff file as in both ParaView and pvpython 
(version 3.14.1) but got a segfault both times.

Here's the pvpython script that failed:

	import paraview.vtk.io
	reader = paraview.vtk.io.vtkTIFFReader()
	reader.SetFileName("data/nir_tomo.tif")
	reader.Update()
	print 'ready to write'
	writer = paraview.vtk.io.vtkXMLImageDataWriter()
	writer.SetFileName("/home/hal/data/nir_tomo.vti")
	writer.SetInputConnection(reader.GetOutputPort())
	writer.Update()





More information about the ParaView mailing list