comparison OrthancStone/Sources/Toolbox/SubvoxelReader.h @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
47 unsigned int width_; 47 unsigned int width_;
48 unsigned int height_; 48 unsigned int height_;
49 unsigned int depth_; 49 unsigned int depth_;
50 50
51 public: 51 public:
52 SubvoxelReaderBase(const ImageBuffer3D& source) : 52 explicit SubvoxelReaderBase(const ImageBuffer3D& source) :
53 source_(source), 53 source_(source),
54 width_(source.GetWidth()), 54 width_(source.GetWidth()),
55 height_(source.GetHeight()), 55 height_(source.GetHeight()),
56 depth_(source.GetDepth()) 56 depth_(source.GetDepth())
57 { 57 {
116 { 116 {
117 public: 117 public:
118 typedef Orthanc::PixelTraits<Format> Traits; 118 typedef Orthanc::PixelTraits<Format> Traits;
119 typedef typename Traits::PixelType PixelType; 119 typedef typename Traits::PixelType PixelType;
120 120
121 SubvoxelReader(const ImageBuffer3D& source) : 121 explicit SubvoxelReader(const ImageBuffer3D& source) :
122 SubvoxelReaderBase(source) 122 SubvoxelReaderBase(source)
123 { 123 {
124 } 124 }
125 125
126 inline bool GetValue(PixelType& target, 126 inline bool GetValue(PixelType& target,
148 { 148 {
149 public: 149 public:
150 typedef Orthanc::PixelTraits<Format> Traits; 150 typedef Orthanc::PixelTraits<Format> Traits;
151 typedef typename Traits::PixelType PixelType; 151 typedef typename Traits::PixelType PixelType;
152 152
153 SubvoxelReader(const ImageBuffer3D& source) : 153 explicit SubvoxelReader(const ImageBuffer3D& source) :
154 SubvoxelReaderBase(source) 154 SubvoxelReaderBase(source)
155 { 155 {
156 } 156 }
157 157
158 inline bool Sample(float& f00, 158 inline bool Sample(float& f00,
191 191
192 public: 192 public:
193 typedef Orthanc::PixelTraits<Format> Traits; 193 typedef Orthanc::PixelTraits<Format> Traits;
194 typedef typename Traits::PixelType PixelType; 194 typedef typename Traits::PixelType PixelType;
195 195
196 SubvoxelReader(const ImageBuffer3D& source) : 196 explicit SubvoxelReader(const ImageBuffer3D& source) :
197 SubvoxelReaderBase(source), 197 SubvoxelReaderBase(source),
198 bilinear_(source) 198 bilinear_(source)
199 { 199 {
200 } 200 }
201 201