Skip to content
Snippets Groups Projects
Commit 9ccbd52e authored by Marina Bertolino's avatar Marina Bertolino
Browse files

ENH: change shrinkFactor calculation in DynamicConvert

parent e6fb365a
No related branches found
No related tags found
No related merge requests found
......@@ -243,8 +243,7 @@ private:
// Shrink factor is computed so as to load a quicklook of 1000
// pixels square at most
auto imageSize = tempImage->GetLargestPossibleRegion().GetSize();
unsigned int shrinkFactor =
std::max(imageSize[0], imageSize[1]) < 1000 ? 1 : std::max(imageSize[0], imageSize[1])/1000;
unsigned int shrinkFactor = std::max({int(imageSize[0])/1000, int(imageSize[1])/1000, 1});
otbAppLogDEBUG( << "Shrink factor used to compute Min/Max: "<<shrinkFactor );
otbAppLogDEBUG( << "Shrink starts..." );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment