how to get the current progress
Moderator: Moderator Team
-
- Posts: 8
- Joined: Mon, 2011-08-08, 09:53
how to get the current progress
Hello ^ ^~
When performing a function of time, how to get the current progress
When performing a function of time, how to get the current progress
-
- DCMTK Developer
- Posts: 2541
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
-
- Posts: 8
- Joined: Mon, 2011-08-08, 09:53
Thank you for your reply ^ ^~.J. Riesmeier wrote:Could you please be a little more specific, e.g. what exactly is your use case and where comes DCMTK into play.
This is the time when I perform some function,
For example, read from the CD a big JPEG-compressed DICOM image files may take 10 seconds,
But no way in the GUI system does not respond to endure 10 seconds, hoping to achieve progress in the implementation within the function.
-
- Posts: 8
- Joined: Mon, 2011-08-08, 09:53
-
- DCMTK Developer
- Posts: 2541
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
-
- Posts: 8
- Joined: Mon, 2011-08-08, 09:53
Yes, except dcmnet outside in DcmData and DcmImage Some features require a longer running time.
For example, to open a thread more than 150MB of DICOM XA file and the jpeg decompression.
The progress of the program needs to be reflected to the user.
I want to know how to get this information?
Thank you
For example, to open a thread more than 150MB of DICOM XA file and the jpeg decompression.
The progress of the program needs to be reflected to the user.
I want to know how to get this information?
Thank you
I have the same wondering.
My software seems to be stuck during dicom reading. But I read a list of dicom files (about 512kB per file), so I can update a progress bar.
if there is no way to get the progression of dcmtk process, you can use some tricks:
1) Very ugly: make a logarithmic progress bar: fill your bar to half during 10 sec, then fill half remaining bar during 10 sec, and so on...
2) Bad: provide in your software a little dicom file of few MB, and on startup, time the loading of this file. Log results in a file to avoid doing that at next startup. Then stat the file to be opened, and compute the estimated time to open it.
3) mix 1 and 2. First file opened: logarithmic progress bar and time the process. Next file opened, estimated time.
4) very clean: "Dear user, opening a dicom file can take a while. Please, do not shut down <name_of_your_software> during the process..."
good luck
My software seems to be stuck during dicom reading. But I read a list of dicom files (about 512kB per file), so I can update a progress bar.
if there is no way to get the progression of dcmtk process, you can use some tricks:
1) Very ugly: make a logarithmic progress bar: fill your bar to half during 10 sec, then fill half remaining bar during 10 sec, and so on...
2) Bad: provide in your software a little dicom file of few MB, and on startup, time the loading of this file. Log results in a file to avoid doing that at next startup. Then stat the file to be opened, and compute the estimated time to open it.
3) mix 1 and 2. First file opened: logarithmic progress bar and time the process. Next file opened, estimated time.
4) very clean: "Dear user, opening a dicom file can take a while. Please, do not shut down <name_of_your_software> during the process..."
good luck
-
- DCMTK Developer
- Posts: 120
- Joined: Thu, 2009-11-26, 08:15
Who is online
Users browsing this forum: Google [Bot] and 1 guest