Mercurial > hg > orthanc
comparison Core/ImageFormats/ImageProcessing.h @ 863:3c0d0836f704 jpeg
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Jun 2014 17:20:33 +0200 |
parents | ff530685e46a |
children | 6e7e5ed91c2d |
comparison
equal
deleted
inserted
replaced
862:5a125d587810 | 863:3c0d0836f704 |
---|---|
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include "ImageAccessor.h" | 35 #include "ImageAccessor.h" |
36 | 36 |
37 #include <stdint.h> | |
38 | |
37 namespace Orthanc | 39 namespace Orthanc |
38 { | 40 { |
39 class ImageProcessing | 41 class ImageProcessing |
40 { | 42 { |
41 public: | 43 public: |
43 const ImageAccessor& source); | 45 const ImageAccessor& source); |
44 | 46 |
45 static void Convert(ImageAccessor& target, | 47 static void Convert(ImageAccessor& target, |
46 const ImageAccessor& source); | 48 const ImageAccessor& source); |
47 | 49 |
50 static void Set(ImageAccessor& image, | |
51 int64_t value); | |
52 | |
48 static void ShiftRight(ImageAccessor& target, | 53 static void ShiftRight(ImageAccessor& target, |
49 unsigned int shift); | 54 unsigned int shift); |
55 | |
56 static void GetMinMaxValue(int64_t& minValue, | |
57 int64_t& maxValue, | |
58 const ImageAccessor& image); | |
59 | |
60 static void AddConstant(ImageAccessor& image, | |
61 int64_t value); | |
62 | |
63 static void MultiplyConstant(ImageAccessor& image, | |
64 float factor); | |
65 | |
66 static void ShiftScale(ImageAccessor& image, | |
67 float offset, | |
68 float scaling); | |
50 }; | 69 }; |
51 } | 70 } |