File indexing completed on 2024-12-22 04:15:21

0001 /*
0002  * This file is part of the KDE project
0003  *
0004  * SPDX-FileCopyrightText: 2004 Cyrille Berger <cberger@cberger.net>
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #include "imageenhancement.h"
0009 #include <stdlib.h>
0010 #include <vector>
0011 
0012 #include <QPoint>
0013 
0014 #include <klocalizedstring.h>
0015 
0016 #include <kis_debug.h>
0017 #include <kpluginfactory.h>
0018 
0019 #include <KisDocument.h>
0020 #include <kis_image.h>
0021 #include <kis_layer.h>
0022 #include <filter/kis_filter_registry.h>
0023 #include <kis_global.h>
0024 #include <kis_types.h>
0025 #include "kis_simple_noise_reducer.h"
0026 #include "kis_wavelet_noise_reduction.h"
0027 
0028 K_PLUGIN_FACTORY_WITH_JSON(KritaImageEnhancementFactory, "kritaimageenhancement.json", registerPlugin<KritaImageEnhancement>();)
0029 
0030 KritaImageEnhancement::KritaImageEnhancement(QObject *parent, const QVariantList &)
0031         : QObject(parent)
0032 {
0033     KisFilterRegistry::instance()->add(new KisSimpleNoiseReducer());
0034     KisFilterRegistry::instance()->add(new KisWaveletNoiseReduction());
0035 }
0036 
0037 KritaImageEnhancement::~KritaImageEnhancement()
0038 {
0039 }
0040 
0041 #include "imageenhancement.moc"