[vtkusers] Reading data from the GUI level
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Mon Aug 11 07:37:43 EDT 2003
This is a nice feature of VTK. You can store structured points
containing not only scalar but vectors !
So I assume you are reading only scalar structured points, right ?
You'll have to use it this way:
reader->GetOutput()->GetScalarComponentAsFloat( x, y, z, 0)
for pixel x,y,z
HTH
mathieu
Marcio Mathias (SAO PAULO/EDB) wrote:
> Hi Mathieu,
>
> Thanks for the hint but what this "component" used as argument means?
>
> /Marcio
>
>
>
> -----Original Message-----
> From: Mathieu Malaterre [mailto:Mathieu.Malaterre at creatis.insa-lyon.fr]
> Sent: segunda-feira, 11 de agosto de 2003 08:18
> To: Marcio Mathias (SAO PAULO/EDB)
> Cc: 'vtkusers at vtk.org'
> Subject: Re: [vtkusers] Reading data from the GUI level
>
>
> Marcio,
>
> vtkImageData::GetScalarComponentAsFloat
>
> http://www.vtk.org/doc/nightly/html/classvtkImageData.html#z340_0
>
> HTH
> mathieu
>
> Marcio Mathias (SAO PAULO/EDB) wrote:
>
>>Hi all,
>>
>>I am using vtkStructuredPointsReader to get data information from a
>>ASCII file. I did not find a method to read an specific scalar data
>>stored in the file. How to read a single data in the reader? I know the
>>origin, spacing and the cartesian coordinates used when the data file
>>was written.
>>
>>PS: I am using Tcl code.
>>
>>/Marcio
>>
>
>
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
More information about the vtkusers
mailing list