Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/ImageProcessing.h @ 4083:26efd0404d97 framework
integration mainline->framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Jun 2020 07:39:42 +0200 |
parents | Core/Images/ImageProcessing.h@2e1564f57542 Core/Images/ImageProcessing.h@259c33759937 |
children | bf7b9edf6b81 |
comparison
equal
deleted
inserted
replaced
4081:259c33759937 | 4083:26efd0404d97 |
---|---|
202 static void SmoothGaussian5x5(ImageAccessor& image, | 202 static void SmoothGaussian5x5(ImageAccessor& image, |
203 bool useRound /* this is expensive */); | 203 bool useRound /* this is expensive */); |
204 | 204 |
205 static void FitSize(ImageAccessor& target, | 205 static void FitSize(ImageAccessor& target, |
206 const ImageAccessor& source); | 206 const ImageAccessor& source); |
207 | 207 |
208 // Resize the image to the given width/height. The resized image | |
209 // occupies the entire canvas (aspect ratio is not preserved). | |
208 static ImageAccessor* FitSize(const ImageAccessor& source, | 210 static ImageAccessor* FitSize(const ImageAccessor& source, |
209 unsigned int width, | 211 unsigned int width, |
210 unsigned int height); | 212 unsigned int height); |
213 | |
214 // Resize an image, but keeps its original aspect ratio. Zeros are | |
215 // added around the image to reach the specified size. | |
216 static ImageAccessor* FitSizeKeepAspectRatio(const ImageAccessor& source, | |
217 unsigned int width, | |
218 unsigned int height); | |
211 }; | 219 }; |
212 } | 220 } |
213 |