Mercurial > hg > orthanc-stone
diff Samples/Sdl/Loader.cpp @ 763:53167294d870
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 23 May 2019 11:27:37 +0200 |
parents | 26f4345e771e 07adcffba38c |
children | f36a6f7e7bdf |
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp Thu May 23 11:27:11 2019 +0200 +++ b/Samples/Sdl/Loader.cpp Thu May 23 11:27:37 2019 +0200 @@ -382,9 +382,10 @@ const DicomInstanceParameters& parameters = *slices_[0]; image_.reset(new ImageBuffer3D(parameters.GetExpectedPixelFormat(), - parameters.GetImageInformation().GetWidth(), - parameters.GetImageInformation().GetHeight(), - slices.GetSlicesCount(), false /* don't compute range */)); + parameters.GetImageInformation().GetWidth(), + parameters.GetImageInformation().GetHeight(), + static_cast<unsigned int>(slices.GetSlicesCount()), + false /* don't compute range */)); geometry_->SetSize(image_->GetWidth(), image_->GetHeight(), image_->GetDepth()); geometry_->SetAxialGeometry(slices.GetSliceGeometry(0)); @@ -467,7 +468,7 @@ { { ImageBuffer3D::SliceWriter writer - (*image_, VolumeProjection_Axial, index); + (*image_, VolumeProjection_Axial, static_cast<unsigned int>(index)); Orthanc::ImageProcessing::Copy(writer.GetAccessor(), image); } @@ -571,8 +572,8 @@ if (volume_.GetSlicesCount() != 0) { - strategy_.reset(new BasicFetchingStrategy( - sorter_->CreateSorter(volume_.GetSlicesCount()), BEST_QUALITY)); + strategy_.reset(new BasicFetchingStrategy(sorter_->CreateSorter( + static_cast<unsigned int>(volume_.GetSlicesCount())), BEST_QUALITY)); assert(simultaneousDownloads_ != 0); for (unsigned int i = 0; i < simultaneousDownloads_; i++)