comparison Framework/Toolbox/FiniteProjectiveCamera.cpp @ 1298:8a0a62189f46

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 16:31:30 +0100
parents 2d8ab34c8c91
children 30deba7bc8e2
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
432 // TODO - We consider the axial projection of the volume, but we 432 // TODO - We consider the axial projection of the volume, but we
433 // should choose the projection that is the "most perpendicular" 433 // should choose the projection that is the "most perpendicular"
434 // to the line joining the camera center and the principal point 434 // to the line joining the camera center and the principal point
435 const VolumeProjection projection = VolumeProjection_Axial; 435 const VolumeProjection projection = VolumeProjection_Axial;
436 436
437 std::auto_ptr<Orthanc::ImageAccessor> target 437 std::unique_ptr<Orthanc::ImageAccessor> target
438 (new Orthanc::Image(targetFormat, targetWidth, targetHeight, false)); 438 (new Orthanc::Image(targetFormat, targetWidth, targetHeight, false));
439 439
440 if (targetFormat == Orthanc::PixelFormat_Grayscale16 && 440 if (targetFormat == Orthanc::PixelFormat_Grayscale16 &&
441 source.GetFormat() == Orthanc::PixelFormat_Grayscale16 && mip) 441 source.GetFormat() == Orthanc::PixelFormat_Grayscale16 && mip)
442 { 442 {