]> Creatis software - creaImageIO.git/commitdiff
#2471 creaImageIO Bug New Normal UnMosaic compilation conflict in Windows
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 28 Oct 2014 15:44:58 +0000 (16:44 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 28 Oct 2014 15:44:58 +0000 (16:44 +0100)
src/creaImageIOUnMosaicVtkImageData.cpp

index 61601066a66b2e7bd4a69102fd38ad568bb3587d..7b0064676555edc1c7551165c6175087030c792c 100644 (file)
@@ -80,7 +80,7 @@ std::vector<vtkImageData*> creaImageIOUnMosaicVtkImageData::unMosaicVectorVtkIma
 // ------------------------------------------------------------------------
 vtkImageData * creaImageIOUnMosaicVtkImageData::unMosaic(vtkImageData *imageIn, int numberOfImagesInMosaic)
 {
-       int nbImagesPerRow = ceil( sqrt(numberOfImagesInMosaic) );
+       int nbImagesPerRow = ceil( sqrt( (double)numberOfImagesInMosaic) );
    int inputdims[3];
    int outputdims[3];
    imageIn->GetDimensions (inputdims);