[vtkusers] Strange slowness with vtkImagePlaneWidget

Dean Inglis inglis.dl at gmail.com
Wed Sep 4 10:21:43 EDT 2013


Hi Marco,

what is the underlying pixel data type in those two images ?  The widget
has an internal
vtkImageMapToColors which will do additional processing to convert the
input to
uchar if required.  How do you configure your widgets ?


- Dean


On Wed, Sep 4, 2013 at 7:08 AM, Marco Sambin <m.sambin at gmail.com> wrote:

> Hi all.
>
> In my VTK6-based Java application, I am using a vtkCanvas where I display
> three orthogonal vtkImagePlaneWidgets, cutting a volume loaded
> through vtkImageReader2.
>
> Everything works fine on my development machine, which is a recent and
> moderately-powerful 64-bit Win 7-based machine.
>
> For legacy-compatibility purposes, I tested this application under an
> older Win XP-based Pentium 4 machine with 1 GB RAM and old Barco graphic
> cards, and I obtained "strange" results:
>
> - if I feed vtkImageReader2 with a volume made up of around 360 raw
> slices, each one 512x512 pixels, then the overall rendering performances of
> the view containing the three vtkImagePlaneWidgets are acceptable.
>
> - on the other side, if I feed vtkImageReader2 with a volume made up of 90
> (i.e., fewer) raw slices, each one 512x512 pixels, then the overall
> rendering performances of the view containing the three
> vtkImagePlaneWidgets become really poor, and I can distinguish the texture
> appearing on top of each plane widget painting as two separate triangles,
> given the slow rendering.
>
> Can you guess why the rendering performance of the vtkImagePlaneWidgets
> are much worse with the smaller volume w.r.t. with the larger volume?
>
> Thanks for any hints you will give.
>
> Best regards,
>
> Marco
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130904/030053f0/attachment.htm>


More information about the vtkusers mailing list