comparison Framework/Toolbox/FiniteProjectiveCamera.cpp @ 1299:c38c89684d83 broker

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 17:21:24 +0100
parents 2d8ab34c8c91
children 30deba7bc8e2
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
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 {