~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/imageplugins/enhance/hotpixels/hotpixelfixer.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2005-03-27
7
7
 * Description : Threaded image filter to fix hot pixels
8
8
 *
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>
11
11
 *
12
12
 * This program is free software; you can redistribute it
64
64
 
65
65
public:
66
66
 
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);
70
70
    ~HotPixelFixer();
71
71
 
73
73
    {
74
74
        return "digikam:HotPixelFilter";
75
75
    }
 
76
 
76
77
    static QString          DisplayableName()
77
78
    {
78
79
        return I18N_NOOP("Hot Pixels Tool");
79
80
    }
 
81
 
80
82
    static QList<int>       SupportedVersions()
81
83
    {
82
84
        return QList<int>() << 1;
83
85
    }
 
86
 
84
87
    static int              CurrentVersion()
85
88
    {
86
89
        return 1;
87
90
    }
88
91
 
 
92
    void readParameters(const Digikam::FilterAction& action);
 
93
 
89
94
    virtual QString         filterIdentifier() const
90
95
    {
91
96
        return FilterIdentifier();
92
97
    }
 
98
 
93
99
    virtual Digikam::FilterAction filterAction();
94
 
    void                    readParameters(const Digikam::FilterAction& action);
95
100
 
96
101
private:
97
102
 
98
103
    virtual void filterImage();
99
104
 
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);
103
108
 
104
 
    inline bool validPoint(Digikam::DImg& img, QPoint p)
 
109
    inline bool validPoint(Digikam::DImg& img, const QPoint& p)
105
110
    {
106
111
        return (p.x()>=0 && p.y()>=0 && p.x()<(long) img.width() && p.y()<(long) img.height());
107
112
    };