Hello Pierre-Yve,

I have the same concerns for this. So I'd be interested in a proper fix - for now I just changed the MITK code to have no compression. Also, importantly, note that when you save the project as a .mitk file - there is another compression step which is also quite time consuming. To remove that compression you need to replace line 403 (in 2014.03 verison) with:
zipper.addRecursive(tmpdir, Poco::Zip::ZipCommon::CL_SUPERFAST);

Rostislav.

On 16/07/2014 20:56, Pierre-Yves Menguy wrote:
Hello,

I want to discuss about another request : how about allowing the user to enable or disable image compression when saving them? An option in the General preference page would be perfect in my opinion. I dived just enough to find where the switch should be located, not enough to find all necessary changes.
Source of my request :
mitkImageWriter.cpp, function WriteByITK, Line 223 :
   //use compression if available
   imageIO->UseCompressionOn();
What I imagined :
// Check preferences if it has access to the Pref service ? Or create an Get/Set-er in the class, thus making possible :
   // imageIO->SetUseCompression( this->GetUseCompression() );

It takes a lot of time to compress my images, sometimes for little gain (from 315 Mo to 297 Mo). Even when the compression is very efficient (binary images, mostly : 150 Mo -> ~3 Mo), I would prefer to use more disk space instead of CPU time (we have some computers with low-end CPUs, but enough disk space).

Would it be feasible easily, or would it require a lot of time/changes ?
I don't understand fully how all parts of the workbench are loaded, if there is a 'strict' order, so I don't have any idea of how much work that it represents.

Also, is there anyone else interested ?


Regards,

Pierre-Yves Menguy.


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds


_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to