[vtkusers] Question : Performance problem of gdcmviewer

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Oct 6 06:19:34 EDT 2008


On Mon, Oct 6, 2008 at 12:05 PM, masabumi ishihara
<maty.ishihara at gmail.com> wrote:
> TO: Mathieu Malaterre-san,
> CC: VTK Users, gdcm-developers,
>
> Thank you for your everyday's support.
> By the way,
  ^^^^^^

really :)

> we have a problem about gdcmviewer.
> The problem is that when the gdcmviewer read the large size DICOM
> data, attached to this mail,
> the performance of moving or zooming operation bocome much slower.
> The results of the performance are as follows;
>
>                     size of file         performance
>                        514KB            real time
>                       2051KB           real time
>                     15001KB*              slow
>             (* compressed file attached to this mail)

This is not so much about the size of the data that matter here. If
you have a 512x512x10 volume I bet you would not see any issue here.
the problem IMHO was that you are dealing with image larger than 1024
in at least one dimension.

> Our execution emvironment is as follows;
>
>      Software versions:  Release mode of  vtk-5.2.0 and  gdcm-2.0.8
>      OS:  Windows XP Professional Version 2002 Service Pack 3
>      Compiler:  Microsoft Visual Studio 9.0 cl.exe
>     Actual dataset used:  I0000457.dcm (compressed I0000457.LZH)

Very nice ! Very good summary.

> In addition to that, the gdcmviewer to which Francois's patch is
> installed can not improve the performance.
> Now, we are planning to develop high performance viewer, so we have to
> solve this problem.

If you are absolutely positive, 100% sure you did apply the patch
properly...then try again but from scratch this time. Also remove
*any* other VTK version from your system, as it would get called if
first on the search $PATH env var.

Seriously on any decent graphics card your image should just render
just fine. Anyone knows the equivalent on Win32 system for the glxinfo
command ? If you cannot get a glxinfo like cmd on your system, simply
try to print out the value returned by:

...
#include <GL/gl.h>

 GLint maxSize;
 glGetIntegerv(GL_MAX_TEXTURE_SIZE,&maxSize);
....

You need to link to -lGL

> Please give us your hands!

I'm sorry Dave, I'm afraid I can't do that.


-- 
Mathieu



More information about the vtkusers mailing list