7
7
* Description : Threaded image filter to fix hot pixels
9
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
9
* Copyright (C) 2005-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
* Copyright (C) 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net>
12
12
* This program is free software; you can redistribute it
67
explicit HotPixelFixer(QObject* parent = 0);
68
explicit HotPixelFixer(Digikam::DImg* orgImage, QObject* parent,
67
explicit HotPixelFixer(QObject* const parent = 0);
68
explicit HotPixelFixer(Digikam::DImg* const orgImage, QObject* const parent,
69
69
const QList<HotPixel>& hpList, int interpolationMethod);
74
74
return "digikam:HotPixelFilter";
76
77
static QString DisplayableName()
78
79
return I18N_NOOP("Hot Pixels Tool");
80
82
static QList<int> SupportedVersions()
82
84
return QList<int>() << 1;
84
87
static int CurrentVersion()
92
void readParameters(const Digikam::FilterAction& action);
89
94
virtual QString filterIdentifier() const
91
96
return FilterIdentifier();
93
99
virtual Digikam::FilterAction filterAction();
94
void readParameters(const Digikam::FilterAction& action);
98
103
virtual void filterImage();
100
void interpolate (Digikam::DImg& img,HotPixel& hp, int method);
101
void weightPixels (Digikam::DImg& img, HotPixel& px, int method,
102
Direction dir, int maxComponent);
105
void interpolate(Digikam::DImg& img,HotPixel& hp, int method);
106
void weightPixels(Digikam::DImg& img, HotPixel& px, int method,
107
Direction dir, int maxComponent);
104
inline bool validPoint(Digikam::DImg& img, QPoint p)
109
inline bool validPoint(Digikam::DImg& img, const QPoint& p)
106
111
return (p.x()>=0 && p.y()>=0 && p.x()<(long) img.width() && p.y()<(long) img.height());