File indexing completed on 2024-05-19 04:22:56
0001 #ifndef BLITZ_H 0002 #define BLITZ_H 0003 0004 //************************************************************************** 0005 /* 0006 (c) 2016 Martin Koller, kollix@aon.at 0007 All rights reserved. 0008 0009 Redistribution and use in source and binary forms, with or without 0010 modification, are permitted provided that the following conditions 0011 are met: 0012 0013 1. Redistributions of source code must retain the above copyright 0014 notice, this list of conditions and the following disclaimer. 0015 2. Redistributions in binary form must reproduce the above copyright 0016 notice, this list of conditions and the following disclaimer in the 0017 documentation and/or other materials provided with the distribution. 0018 0019 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0020 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0021 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0022 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0023 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0025 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0026 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0027 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0028 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0029 */ 0030 //************************************************************************** 0031 0032 #include <QImage> 0033 0034 namespace Blitz 0035 { 0036 QImage blur(QImage &img, int radius); 0037 QImage gaussianSharpen(QImage &img, float radius, float sigma); 0038 QImage emboss(QImage &img, float radius, float sigma); 0039 QImage &flatten(QImage &img, const QColor &ca, const QColor &cb); 0040 }; 0041 0042 #endif