comparison Plugins/Samples/GdcmDecoder/Plugin.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 fbc5522023aa
children b1291df2f780
comparison
equal deleted inserted replaced
1839:7f68b04c79e8 1840:859224214616
37 std::auto_ptr<OrthancPlugins::OrthancImageWrapper> image; 37 std::auto_ptr<OrthancPlugins::OrthancImageWrapper> image;
38 38
39 #if 0 39 #if 0
40 // Do not use the cache 40 // Do not use the cache
41 OrthancPlugins::GdcmImageDecoder decoder(dicom, size); 41 OrthancPlugins::GdcmImageDecoder decoder(dicom, size);
42 image.reset(new OrthancPlugins::OrthancImageWrapper(context_, decoder, frameIndex)); 42 image.reset(new OrthancPlugins::OrthancImageWrapper(context_, decoder.Decode(context_, frameIndex)));
43 #else 43 #else
44 image.reset(cache_.Decode(context_, dicom, size, frameIndex)); 44 image.reset(cache_.Decode(context_, dicom, size, frameIndex));
45 #endif 45 #endif
46 46
47 *target = image->Release(); 47 *target = image->Release();