comparison Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 1836:2faa2abbf311

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2015 17:40:25 +0100
parents b1a6f49b21dd
children 859224214616
comparison
equal deleted inserted replaced
1835:323dd6402933 1836:2faa2abbf311
220 { 220 {
221 return pimpl_->GetImage().GetDimension(2); 221 return pimpl_->GetImage().GetDimension(2);
222 } 222 }
223 223
224 224
225 double GdcmImageDecoder::GetSlope() const
226 {
227 return pimpl_->GetImage().GetSlope();
228 }
229
230
231 double GdcmImageDecoder::GetIntercept() const
232 {
233 return pimpl_->GetImage().GetIntercept();
234 }
235
236
237 double GdcmImageDecoder::GetColumnPixelSpacing() const
238 {
239 return pimpl_->GetImage().GetSpacing(1);
240 }
241
242
243 double GdcmImageDecoder::GetRowPixelSpacing() const
244 {
245 return pimpl_->GetImage().GetSpacing(0);
246 }
247
248
225 size_t GdcmImageDecoder::GetBytesPerPixel(OrthancPluginPixelFormat format) 249 size_t GdcmImageDecoder::GetBytesPerPixel(OrthancPluginPixelFormat format)
226 { 250 {
227 switch (format) 251 switch (format)
228 { 252 {
229 case OrthancPluginPixelFormat_Grayscale8: 253 case OrthancPluginPixelFormat_Grayscale8: