[Insight-users] Capturing progress info while loading file

Luis Ibanez luis . ibanez at kitware . com
Tue, 18 Jun 2002 17:22:39 -0400


Hi Yann,

You are right,

the ImageIO was not invoking ProgressEvents.

I just modified the MetaImageIO class in order
to invoke ProgressEvents.

It was originally reading the whole image in
a single Read(char *buffer, imagesize) operation.

Now this has been divided into 100 reads() and
in between them, ProgressEvents are invoked.

The GaussianFilter example (3D) has been modified
in order to reflect these updates.

If you CVS update now, you will be able to get the
updated version of IO.


Please let us know if you find further problems.


Thanks for your feedback.


    Luis


==========================================


Yann Rouillard wrote:

> Hi Luis,
> 
> Thank you for your detailed answer. I have tried to use an observer to
> update a progress bar while loading a meta-image file but it doesn't seem to
> work. I traced the execution and I have reached the MetaImageIO::Read method
> where it seems that no ProgressEvent are triggered.
> 
> Are ProgressEvent only used for filter or am I wrong in some point ?
> 
> Cheers;
>     Yann
> 
> 
>