From 215f2f66f351e645b81a2451e3318a8e07ea7c3e Mon Sep 17 00:00:00 2001 From: davila Date: Mon, 20 Oct 2014 15:38:02 +0200 Subject: [PATCH] #2468 creaVtk Feature New Normal - Clean UnMosaic Code --- lib/creaVtk/creaVtkUnMosaicVectorVtkImageData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/creaVtk/creaVtkUnMosaicVectorVtkImageData.cpp b/lib/creaVtk/creaVtkUnMosaicVectorVtkImageData.cpp index 59a5235..c3334e9 100644 --- a/lib/creaVtk/creaVtkUnMosaicVectorVtkImageData.cpp +++ b/lib/creaVtk/creaVtkUnMosaicVectorVtkImageData.cpp @@ -41,14 +41,14 @@ std::vector creaVtkUnMosaicVectorVtkImageData::unMosaicVectorVtkI std::vector nbImagesInMosaic; for(int i = 0; i < NbImagesInMosaicVector.size(); i++){ - nbImagesInMosaic.push_back(NbImagesInMosaicVector[i]); nbImagesPerRow.push_back( ceil(sqrt(NbImagesInMosaicVector[i])) ); + nbImagesInMosaic.push_back(NbImagesInMosaicVector[i]); } if(imageInput.size() != NbImagesInMosaicVector.size()){ for(int j = NbImagesInMosaicVector.size(); j < imageInput.size(); j++) { - nbImagesInMosaic.push_back( NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1] ); nbImagesPerRow.push_back( ceil(sqrt(NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1])) ); + nbImagesInMosaic.push_back( NbImagesInMosaicVector[NbImagesInMosaicVector.size()-1] ); } } -- 2.47.1