comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4858:8b51d65584f0

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 Dec 2021 15:32:08 +0100
parents b3d0a3a4d890
children 3e9a76464e8a 43e613a7756b c728d8f25e5a
comparison
equal deleted inserted replaced
4857:275bc6769d60 4858:8b51d65584f0
1160 { 1160 {
1161 private: 1161 private:
1162 bool rescale_; 1162 bool rescale_;
1163 unsigned int depth_; 1163 unsigned int depth_;
1164 unsigned int currentDepth_; 1164 unsigned int currentDepth_;
1165 unsigned int width_;
1165 unsigned int height_; 1166 unsigned int height_;
1166 unsigned int width_;
1167 PixelFormat format_; 1167 PixelFormat format_;
1168 ChunkedBuffer buffer_; 1168 ChunkedBuffer buffer_;
1169 1169
1170 public: 1170 public:
1171 NumpyVisitor(unsigned int depth /* can be zero if 2D frame */, 1171 NumpyVisitor(unsigned int depth /* can be zero if 2D frame */,
1172 bool rescale) : 1172 bool rescale) :
1173 rescale_(rescale), 1173 rescale_(rescale),
1174 depth_(depth), 1174 depth_(depth),
1175 currentDepth_(0) 1175 currentDepth_(0),
1176 { 1176 width_(0), // dummy initialization
1177 } 1177 height_(0), // dummy initialization
1178 1178 format_(PixelFormat_Grayscale8) // dummy initialization
1179 void WriteFrame(ParsedDicomFile& dicom, 1179 {
1180 }
1181
1182 void WriteFrame(const ParsedDicomFile& dicom,
1180 unsigned int frame) 1183 unsigned int frame)
1181 { 1184 {
1182 std::unique_ptr<ImageAccessor> decoded(dicom.DecodeFrame(frame)); 1185 std::unique_ptr<ImageAccessor> decoded(dicom.DecodeFrame(frame));
1183 1186
1184 if (decoded.get() == NULL) 1187 if (decoded.get() == NULL)