[Insight-users] progressSlider & ProgressEvent & IterationEvent
Luis Ibanez
luis.ibanez@kitware.com
Thu, 24 Oct 2002 08:35:07 -0400
Hi Zein,
The problem is that not all filters invoke ProgressEvent()'s.
Some of the filters work on iterative basis and it is not
possible to establish in advance how long it will take
them to run. Those iterative filters throw IterationEvents().
You can observe iteration events and increment a counter
in your GUI. Examples of this can be seen in :
Insight/Examples/FastMarchingLevelSet
Insight/Examples/ShapeDetectionLevelSet
For example, Connected components filters work with a
stack of pixels to be visited. Pixels are added to and
removed from the stack. The filter is done when the
stack is empty, but it is not possible to anticipate
how long it will take to process the pixels on the image.
Other filters are simply missing the functionality and
should be added to the TODO list. :-/
That's the case of the RecursiveGaussian filter for
example.
Thanks for pointing this out,
Luis
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
>
Zein Salah wrote:
> Hello all,
>=20
> =20
>=20
> I have added a progressSlider to my user interface to monitor the=20
> progress of some filters. It has woked good for some filters like:
>=20
> GrayscaleFunctionErodeImageFilter and RecursiveGaussianImageFilte=
r.
>=20
> =20
>=20
> It has not respond to the segmentation filters like:
>=20
> SimpleFuzzyConnectednessScalarImageFilter ,=20
> ConnectedThresholdImageFilter, and ConfidenceConnectedImageFilter
>=20
> =20
>=20
> Although I have defined all of the the same way.
>=20
> =20
>=20
> InputErotionFilterType::Pointer m_Eroder;=20
> RecursiveGaussianImageFilterType::Pointer m_Smoother;
> ConfidenceConnectedImageFilterType::Pointer m_CCSeg;
> ConnectedThresholdImageFilterType::Pointer m_CTSeg;
> SimpleFuzzyConnectednessScalarImageFilterType::Pointer m_FuzSeg;
> ...
>=20
> ...
>=20
> ...
>=20
> ...
>=20
> progressSlider->Observe( m_Eroder.GetPointer() );
> progressSlider->Observe( m_Smoother.GetPointer() );
> progressSlider->Observe( m_CTSeg.GetPointer() );
> progressSlider->Observe( m_CCSeg.GetPointer() );
> progressSlider->Observe( m_FuzSeg.GetPointer() );
>=20
> It did not respond to the file Reader.=20
>=20
> =20
>=20
> =20
>=20
> Do anybody have an idea what could the problem be???
>=20
> =20
>=20
> many thanks,
>=20
> =20
>=20
> Zein
>=20
> =20
>=20
> ->8<------------->8<------------->8<------------->8<------------->8<---=
---------->8<-
> Zein I. Salah
> Universit=E4t T=FCbingen, WSI-GRIS
> Sand 14
> 72076 T=FCbingen
> Email: salah@gris.uni-tuebingen.de <mailto:salah@gris.uni-tuebingen.de>=
=20
> / zeinsalah@hotmail.com <mailto:zeinsalah@hotmail.com>
> Tel.: (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)
> Fax: (07071) 29 54 66
>=20