Unify some functions in utils.

This commit is contained in:
2018-01-18 14:43:13 +01:00
parent 51315f1c59
commit 8bef347d05
5 changed files with 46 additions and 6 deletions

View File

@@ -17,8 +17,7 @@ MultiImageVisualisation::MultiImageVisualisation(const fmri::LayerData &layer)
CHECK_EQ(1, images) << "Only single input image is supported" << endl;
int columns = ceil(sqrt(channels));
while (channels % columns) columns++;
int columns = numCols(channels);
// Create the quads for the images.
int r = 0, c = 0;