[vtkusers] Help!GE signa pixel access
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Nov 10 11:54:40 EST 2004
Uzay Emrah Emir wrote:
>
> hi,
>
> I am trying to access GE signa Data using vtkGeSignareader.h. But I could not
> success.
> vtkGESignaReader * reader=vtkGESignaReader::New();
> reader->SetFileName("I.001");
> reader->Update();
> cout<<reader->GetOutput()->GetScalarPointer(0,0,0);
>
> which function do I have use in order to access pixels of GE image.
I don't understand why you are saying you could not sucess. This should
work.
After the update do
reader->GetOutput()->Print( cout );
To be sure the image is read properly.
Also you can save your image to png, using vtkPNGWriter.
HTH
Mathieu
More information about the vtkusers
mailing list