[vtkusers] get the point intensity?

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jan 22 09:48:01 EST 2004


Laurent,

	See my comments interlaced,

Laurent Mundeleer wrote:
> Hi Mathieu,
> 
> thanks for the answer. This is extremely slow? I'll try it, but I don't 
> know another way to do what I need...
> I only find :
> float vtkImageData::GetScalarComponentAsFloat      (       int        x, 
> int      y, int      z, int      component    )    maybe it's because I 
> use VTK 4.2.

Perfectly right.

> I don't use vtkDICOMImageReader yet ( a parser DICOM is in development) 
> so I know the GetOutput() stuff ;-) , but do we always have to call 
> Update() on the reader before doing it?

Well you need to call it at least once. But as you said if you did your 
own filter, I don't know how it works internally. But in standard VTK 
filters you need to call Update to update the pipeline.

> thanks again,
> 
> Laurent





More information about the vtkusers mailing list