diff Framework/Deprecated/Loaders/LoaderCache.cpp @ 1327:4f8db2d202c8 broker

OrthancSeriesProgressiveLoader now has two modes that can be selected at object creation : - progressive (will first load jpeg50, then jpeg90 then PAM) - non-progressive (will directly load PAM (uncompressed)) Please note that the slice loading order remains dynamic and depending upon the slice that the client code wishes to extract from the volume.
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 25 Mar 2020 14:34:27 +0100
parents 9b126de2cde2
children
line wrap: on
line diff
--- a/Framework/Deprecated/Loaders/LoaderCache.cpp	Tue Mar 24 21:32:35 2020 +0100
+++ b/Framework/Deprecated/Loaders/LoaderCache.cpp	Wed Mar 25 14:34:27 2020 +0100
@@ -83,7 +83,9 @@
         boost::shared_ptr<OrthancStone::DicomVolumeImage> volumeImage(new OrthancStone::DicomVolumeImage);
         boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> loader;
       
-        loader = OrthancSeriesVolumeProgressiveLoader::Create(loadersContext_, volumeImage);
+        // true means "use progressive quality"
+        // false means "load high quality slices only"
+        loader = OrthancSeriesVolumeProgressiveLoader::Create(loadersContext_, volumeImage, false);
         loader->LoadSeries(seriesUuid);
         seriesVolumeProgressiveLoaders_[seriesUuid] = loader;
       }