[vtkusers] vtkTiffReader GetDataSpacing error

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Tue May 16 15:05:57 EDT 2006


I'm forwarding your message to the VTK list so that others can help.
I've also commented at the bottom.

On Tue, 2006-05-16 at 20:24 +0200, brizzi at deis.unibo.it wrote:
> thank you for help.
> 
> I'm trying to use vtkImageAppendComponents to create a series of new slices. I
> read the original data and I put them in iac (vtkImageAppendComponents object).
> But I don't know what I have to do at this point...... could you help me? What
> filter I have to use? mapper, actor?
> I would like to visualize (in slicing and/or volume rendering) the new data.
> 
> thanks
> 
> Barbara
> 
> 
> 
> 
> 
> vtkTIFFReader reader00
> 	reader00 SetFilePattern
> "G:\\Prove_VTK\\26_08Elapse\\26-08e_Series002_t00_z%03d_ch00.tif"
> 	reader00 SetDataExtent 0 511 0 511 0 197
> 	reader00 SetDataSpacing 0.68922 0.68922 0.690293
> 	reader00 Update
> 
> vtkTIFFReader reader01
>    	reader01 SetFilePattern
> "G:\\Prove_VTK\\26_08Elapse\\26-08e_Series002_t00_z%03d_ch01.tif"
> 	reader01 SetDataExtent 0 511 0 511 0 49
> 	reader01 SetDataSpacing 0.585938 0.585938 2.040512
> 	reader00 Update
> 
> vtkImageExtractComponents extractor0
>     	extractor0 SetInput [reader00 GetOutput]
>     	extractor0 SetComponents 0
>     	extractor0 Update
> 
> vtkImageExtractComponents extractor1
>     	extractor1 SetInput [reader01 GetOutput]
>     	extractor1 SetComponents 1
>     	extractor1 Update
> 
> vtkImageExtractComponents extractor2
>     	extractor2 SetInput [reader01 GetOutput]
>     	extractor2 SetComponents 2
>     	extractor2 Update
> 
> vtkImageAppendComponents iac
> 	iac AddInput [extractor0 GetOutput]
>   	iac AddInput [extractor1 GetOutput]
> 	iac AddInput [extractor2 GetOutput]
> 
> ???????
> 

If you don't know what sort of visualization you want to use I would
suggest that you should write the data to a file next. Then you can try
visualization methods out in paraview, or by copying one of the
examples. 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060516/ba67ef6f/attachment.pgp>


More information about the vtkusers mailing list