comparison Framework/Toolbox/FiniteProjectiveCamera.cpp @ 684:7719eb852dd5

new class: VolumeImageGeometry
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 May 2019 16:47:46 +0200
parents 11fa6f00e33c
children 9a474e90e832
comparison
equal deleted inserted replaced
683:dbc1d8bfc68a 684:7719eb852dd5
314 LOG(WARNING) << "Input pixel format: " << Orthanc::EnumerationToString(source.GetFormat()); 314 LOG(WARNING) << "Input pixel format: " << Orthanc::EnumerationToString(source.GetFormat());
315 LOG(WARNING) << "Output image size: " << target.GetWidth() << "x" << target.GetHeight(); 315 LOG(WARNING) << "Output image size: " << target.GetWidth() << "x" << target.GetHeight();
316 LOG(WARNING) << "Output pixel format: " << Orthanc::EnumerationToString(target.GetFormat()); 316 LOG(WARNING) << "Output pixel format: " << Orthanc::EnumerationToString(target.GetFormat());
317 317
318 std::auto_ptr<OrthancStone::ParallelSlices> slices(source.GetGeometry(projection)); 318 std::auto_ptr<OrthancStone::ParallelSlices> slices(source.GetGeometry(projection));
319 const OrthancStone::Vector pixelSpacing = source.GetVoxelDimensions(projection); 319 const OrthancStone::Vector pixelSpacing = source.GetGeometry().GetVoxelDimensions(projection);
320 const unsigned int targetWidth = target.GetWidth(); 320 const unsigned int targetWidth = target.GetWidth();
321 const unsigned int targetHeight = target.GetHeight(); 321 const unsigned int targetHeight = target.GetHeight();
322 322
323 Orthanc::Image accumulator(Orthanc::PixelFormat_Float32, targetWidth, targetHeight, false); 323 Orthanc::Image accumulator(Orthanc::PixelFormat_Float32, targetWidth, targetHeight, false);
324 Orthanc::Image counter(Orthanc::PixelFormat_Grayscale16, targetWidth, targetHeight, false); 324 Orthanc::Image counter(Orthanc::PixelFormat_Grayscale16, targetWidth, targetHeight, false);