comparison Framework/Volumes/ImageBuffer3D.cpp @ 11:4b7e0244881f

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 12:14:03 +0200
parents 351ab0da0150
children ff1e935768e7
comparison
equal deleted inserted replaced
10:55407926aac3 11:4b7e0244881f
92 if (slice >= width_) 92 if (slice >= width_)
93 { 93 {
94 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 94 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
95 } 95 }
96 96
97 std::auto_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_)); 97 std::auto_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_, false));
98 98
99 unsigned int bytesPerPixel = Orthanc::GetBytesPerPixel(format_); 99 unsigned int bytesPerPixel = Orthanc::GetBytesPerPixel(format_);
100 100
101 for (unsigned int z = 0; z < depth_; z++) 101 for (unsigned int z = 0; z < depth_; z++)
102 { 102 {
119 119
120 ImageBuffer3D::ImageBuffer3D(Orthanc::PixelFormat format, 120 ImageBuffer3D::ImageBuffer3D(Orthanc::PixelFormat format,
121 unsigned int width, 121 unsigned int width,
122 unsigned int height, 122 unsigned int height,
123 unsigned int depth) : 123 unsigned int depth) :
124 image_(format, width, height * depth), 124 image_(format, width, height * depth, false),
125 format_(format), 125 format_(format),
126 width_(width), 126 width_(width),
127 height_(height), 127 height_(height),
128 depth_(depth) 128 depth_(depth)
129 { 129 {