comparison Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 1840:859224214616

simplification of the sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 10:34:04 +0100
parents 2faa2abbf311
children b1291df2f780
comparison
equal deleted inserted replaced
1839:7f68b04c79e8 1840:859224214616
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
249 size_t GdcmImageDecoder::GetBytesPerPixel(OrthancPluginPixelFormat format) 225 size_t GdcmImageDecoder::GetBytesPerPixel(OrthancPluginPixelFormat format)
250 { 226 {
251 switch (format) 227 switch (format)
252 { 228 {
253 case OrthancPluginPixelFormat_Grayscale8: 229 case OrthancPluginPixelFormat_Grayscale8: