[vtkusers] Speed/vtkImageData
Ted Vu
lost_bits1110 at hotmail.com
Thu Apr 1 14:46:06 EST 2004
Hi David thanks very much for your response,
I already have a good graphics card on my computer.. so this shouldnt be the
problem..
Actually the values in the vtkFloatArray which I input into my ImageData is
changed before every render, so to update the changes I was calling
ImageData->Modified()
before every call to Render()..
(and also
FloatArray->SetVoidArray( array, NumXpoints*NumYpoints, 1 )
right after my 'array' is updated with new values.. this is the FloatArray
that is used by my ImageData)
So if I insert the following functions as well, then woudnt this slow things
down..?
ImageData->UpdateInformation();
ImageData->SetUpdateExtent(ImageData->GetWholeExtent());
ImageData->Update();
I've used ImageViewer before and this seems pretty fast, but I have 3 actors
so this is why I'm not using this class..
Okay thank-you again for your response!
Ted
>From: David Gobbi <dgobbi at imaging.robarts.ca>
>To: Ted Vu <lost_bits1110 at hotmail.com>
>CC: vtkusers at vtk.org
>Subject: Re: [vtkusers] Speed/vtkImageData
>Date: Thu, 1 Apr 2004 14:07:10 -0500 (EST)
>
>Hi Ted,
>
>Make sure the whole of the ImageData has been updated. I suspect
>that the reason things are slow is that it is continuously re-reading
>the data from disk, either that or it is continuously re-executing
>upstream portions of the pipeline.
>
>To update the whole ImageData:
>ImageData->UpdateInformation();
>ImageData->SetUpdateExtent(ImageData->GetWholeExtent());
>ImageData->Update();
>
>If this is the first time that the ImageData has been updated,
>you can just do ImageData->Update() and skip the rest.
>
>Also, since ImageActor renders the image via texture maps, make sure
>that you have a good 3D graphics card in your computer.
>
> - David
>
>
>On Thu, 1 Apr 2004, Ted Vu wrote:
>
> > Hi
> > Is there any way I can speed up rendering of 2D vtkImageData?
> >
> > My pipeline is
> >
> > ImageData -> ImageMapToColors -> ImageActor
> >
> > I have 3 of these ImageData's which appear on one Renderer
> >
> > Can I somehow use LODActor do you think?
> >
> > Thanks!
> >
> > _________________________________________________________________
> > Is your PC infected? Get a FREE online computer virus scan from McAfee®
> > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.com/go/onm00200415ave/direct/01/
More information about the vtkusers
mailing list