Mercurial > hg > orthanc-stone
comparison Framework/Volumes/DicomVolumeImage.cpp @ 1083:f72d1ab42932 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Oct 2019 13:14:05 +0200 |
parents | 391fb6d6905d |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
1079:e6d2ff8f1ab4 | 1083:f72d1ab42932 |
---|---|
34 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 34 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 | 38 |
39 void DicomVolumeImage::Initialize(const VolumeImageGeometry& geometry, | 39 void DicomVolumeImage::Initialize( |
40 Orthanc::PixelFormat format) | 40 const VolumeImageGeometry& geometry, |
41 Orthanc::PixelFormat format, | |
42 bool computeRange) | |
41 { | 43 { |
42 geometry_.reset(new VolumeImageGeometry(geometry)); | 44 geometry_.reset(new VolumeImageGeometry(geometry)); |
43 image_.reset(new ImageBuffer3D(format, geometry_->GetWidth(), geometry_->GetHeight(), | 45 image_.reset(new ImageBuffer3D(format, geometry_->GetWidth(), geometry_->GetHeight(), |
44 geometry_->GetDepth(), false /* don't compute range */)); | 46 geometry_->GetDepth(), computeRange)); |
45 | 47 |
46 revision_ ++; | 48 revision_ ++; |
47 } | 49 } |
48 | 50 |
49 | 51 |