Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cresson Remi
LSGRM
Commits
a8984a3b
Commit
a8984a3b
authored
Oct 31, 2017
by
Gaetano Raffaele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: cast to float when estimating minimum number of tiles
parent
f98e8f75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/lsgrmController.txx
include/lsgrmController.txx
+1
-1
No files found.
include/lsgrmController.txx
View file @
a8984a3b
...
...
@@ -326,7 +326,7 @@ void Controller<TSegmenter>::GetAutomaticConfiguration()
// Actually, there is tile margins. And the best scenario is to have
// square tiles with margin = width/2, that is tiles 4x larger.
// Hence the number of tiles maximizing memory use is 4x larger.
unsigned int minimumNumberOfTiles = std::ceil(4
*
nbOfNodesInImage / ((float) maximumNumberOfNodesInMemory));
unsigned int minimumNumberOfTiles = std::ceil(4
.0 * ((float)
nbOfNodesInImage
)
/ ((float) maximumNumberOfNodesInMemory));
itkDebugMacro(<<"Minimum number of tiles is " << minimumNumberOfTiles);
// In the following steps, we will optimize tiling layout, starting from a number
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment