Perceptual Color

helperimage.h
1// SPDX-FileCopyrightText: Lukas Sommer <sommerluk@gmail.com>
2// SPDX-License-Identifier: BSD-2-Clause OR MIT
3
4#ifndef HELPERIMAGE_H
5#define HELPERIMAGE_H
6
7#include "genericcolor.h"
8#include "helperqttypes.h"
9#include <lcms2.h>
10#include <qcolor.h>
11#include <qglobal.h>
12#include <type_traits>
13
14#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
15#include <qtmetamacros.h>
16#endif
17
18/** @internal
19 *
20 * @file
21 *
22 * Provides functions for image processing. */
23
24namespace PerceptualColor
25{
26
27void doAntialias(QImage &image, const QList<QPoint> &antiAliasCoordinates, const std::function<QRgb(const double x, const double y)> &colorFunction);
28
29[[nodiscard]] QList<QPoint> findBoundary(const QImage &image);
30
31} // namespace PerceptualColor
32
33#endif // HELPERIMAGE_H
The namespace of this library.
void doAntialias(QImage &image, const QList< QPoint > &antiAliasCoordinates, const std::function< QRgb(const double x, const double y)> &colorFunction)
Calculates anti-alias for gamut diagrams.
QList< QPoint > findBoundary(const QImage &image)
Find boundaries between fully opaque and fully transparent pixels.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 25 2025 12:03:13 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.