Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageProcessing.h Sat Jun 07 10:51:28 2014 +0200 +++ b/Core/ImageFormats/ImageProcessing.h Tue Jun 10 17:20:33 2014 +0200 @@ -34,6 +34,8 @@ #include "ImageAccessor.h" +#include <stdint.h> + namespace Orthanc { class ImageProcessing @@ -45,7 +47,24 @@ static void Convert(ImageAccessor& target, const ImageAccessor& source); + static void Set(ImageAccessor& image, + int64_t value); + static void ShiftRight(ImageAccessor& target, unsigned int shift); + + static void GetMinMaxValue(int64_t& minValue, + int64_t& maxValue, + const ImageAccessor& image); + + static void AddConstant(ImageAccessor& image, + int64_t value); + + static void MultiplyConstant(ImageAccessor& image, + float factor); + + static void ShiftScale(ImageAccessor& image, + float offset, + float scaling); }; }