Mercurial > hg > orthanc-stone
comparison Framework/Layers/GrayscaleFrameRenderer.cpp @ 318:3a4ca166fafa am-2
ImageAccessor refactoring + implemented Image Cache in SmartLoader
author | am@osimis.io |
---|---|
date | Mon, 08 Oct 2018 17:10:08 +0200 |
parents | 5412adf19980 |
children | c80b5bddf86b |
comparison
equal
deleted
inserted
replaced
317:b66d13708f40 | 318:3a4ca166fafa |
---|---|
50 } | 50 } |
51 | 51 |
52 lut = reinterpret_cast<const uint8_t*>(Orthanc::EmbeddedResources::GetFileResourceBuffer(style.lut_)); | 52 lut = reinterpret_cast<const uint8_t*>(Orthanc::EmbeddedResources::GetFileResourceBuffer(style.lut_)); |
53 } | 53 } |
54 | 54 |
55 Orthanc::ImageAccessor target = result->GetAccessor(); | 55 Orthanc::ImageAccessor target; |
56 result->GetAccessor(target); | |
56 const unsigned int width = target.GetWidth(); | 57 const unsigned int width = target.GetWidth(); |
57 const unsigned int height = target.GetHeight(); | 58 const unsigned int height = target.GetHeight(); |
58 | 59 |
59 for (unsigned int y = 0; y < height; y++) | 60 for (unsigned int y = 0; y < height; y++) |
60 { | 61 { |