[vtkusers] Re: monitor progress of vol16Reader

Kate Kerekes kerekes at fastmail.fm
Tue Aug 10 19:14:42 EDT 2004


I apologise--I was testing, but forgot about what Sean said about memory
caching.  I ran two separate cases restarting the computer in between
(BTW anyone know a quick and easy way to reset windows cached memory?)
and the timings were very close.

Thanks for all the help!

Kate Kerekes
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Kate Kerekes
Sent: Tuesday, August 10, 2004 5:44 PM
To: vtkusers at public.kitware.com
Subject: RE: [vtkusers] Re: monitor progress of vol16Reader

Thanks, I didn't know that the SetProgressMethod was deprecated.

I did timings using vtkTimerLog with start/stop just around the "reader
Update" line of code.

For my vtkImageReader code it takes about 19 seconds to read a
512x512x300 block of shorts.

For my vtkVolume16Reader the same data only takes 8.5 seconds.

Does anyone know why this is?  Why would vtkImageReader, the replacement
class for vtkVolume16Reader be slower?

Kate Kerekes

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Goodwin Lawlor
Sent: Thursday, August 05, 2004 7:42 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Re: monitor progress of vol16Reader

Hi Katherine,

The SetProgressMethod is a member function of the vtkProcessObject class
which is a superclass of both vtkVolume16Reader and vtkImageReader... so
they both should have the function.

SetProgressMethod has been depreciated anyway. You should use (for
example
in tcl)

reader AddObserver ProgressEvent {puts "Progress: [reader GetProgess]"}

You could also use an instance of vtkTimerLog to time between the
readers'
StartEvent and EndEvent.

I've no idea why vtkVolume16Reader would be quicker... the documentation
says vtkImageReader is a replacement for vtkVolume16Reader and should be
used instead.

hth

Goodwin

"Kate Kerekes" <kerekes at fastmail.fm> wrote in message
news:000001c47b3e$13dd5e40$0300a8c0 at kerekeslaptop...
Hello everyone,

I have looked at the messages regarding progress and update methods, but
I
still can't answer my question.  I am reading a large dataset (400 MB)
and I
need some sort of progress bar to update.  I was using vtkImageReader
and
the SetProgressMethod.  This worked as expected.  Then I discovered that
vtkVolume16Reader read in the data up to 5 times faster.  So I want to
read
my data with vtkVolume16Reader, but I need a way to set the progress
method.
There are no "setProgress" methods in the vtkVolume16Reader class or any
of
its parents.  Does anyone know a trick to find out the current progress
of
the Volume16Reader?  Can someone explain why vtkImageReader is so much
slower than vtkVolume16Reader?  Is there anything I can do to make
vtkImageReader faster?

Thanks,
Katherine Kerekes



_______________________________________________
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



_______________________________________________
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

_______________________________________________
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




More information about the vtkusers mailing list