comparison Framework/Inputs/SingleLevelDecodedPyramid.cpp @ 228:c6e7dda9ac14

more reuse of Orthanc::ImageProcessing() toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Jan 2021 17:21:31 +0100
parents 1e864138f0da
children 49f647ed1b4c
comparison
equal deleted inserted replaced
227:aff61c449308 228:c6e7dda9ac14
22 #include "../PrecompiledHeadersWSI.h" 22 #include "../PrecompiledHeadersWSI.h"
23 #include "SingleLevelDecodedPyramid.h" 23 #include "SingleLevelDecodedPyramid.h"
24 #include "../ImageToolbox.h" 24 #include "../ImageToolbox.h"
25 25
26 #include <OrthancException.h> 26 #include <OrthancException.h>
27 #include <Images/ImageProcessing.h>
27 28
28 namespace OrthancWSI 29 namespace OrthancWSI
29 { 30 {
30 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target, 31 void SingleLevelDecodedPyramid::ReadRegion(Orthanc::ImageAccessor& target,
31 unsigned int level, 32 unsigned int level,
32 unsigned int x, 33 unsigned int x,
33 unsigned int y) 34 unsigned int y)
34 { 35 {
35 Orthanc::ImageAccessor region; 36 Orthanc::ImageAccessor region;
36 image_.GetRegion(region, x, y, target.GetWidth(), target.GetHeight()); 37 image_.GetRegion(region, x, y, target.GetWidth(), target.GetHeight());
37 ImageToolbox::Copy(target, region); 38 Orthanc::ImageProcessing::Copy(target, region);
38 } 39 }
39 40
40 41
41 unsigned int SingleLevelDecodedPyramid::GetLevelWidth(unsigned int level) const 42 unsigned int SingleLevelDecodedPyramid::GetLevelWidth(unsigned int level) const
42 { 43 {