~ubuntu-branches/ubuntu/natty/digikam/natty

« back to all changes in this revision

Viewing changes to libs/dimg/filters/sharp/matrix.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Public License as published by the Free Software Foundation;
14
14
 * either version 2, or (at your option)
15
15
 * any later version.
16
 
 * 
 
16
 *
17
17
 * This program is distributed in the hope that it will be useful,
18
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
20
 * GNU General Public License for more details.
21
 
 * 
 
21
 *
22
22
 * ============================================================ */
23
23
 
24
24
#ifndef MATRIX_H_INCLUDED
93
93
class RefocusMatrix
94
94
{
95
95
 
96
 
public: 
 
96
public:
97
97
 
98
98
    static void fill_matrix (CMat* matrix, const int m, double f(const int, const int, const double), const double fun_arg);
99
99
 
100
100
    static void fill_matrix2 (CMat* matrix, const int m,
101
 
                              double f(const int, const int, const double, const double), 
 
101
                              double f(const int, const int, const double, const double),
102
102
                              const double fun_arg1, const double fun_arg2);
103
103
 
104
104
    static void make_circle_convolution (const double radius, CMat* convolution, const int m);
128
128
    static CMat* allocate_c_mat (const int radius);
129
129
    static inline double* c_mat_eltptr (CMat* mat, const int col, const int row);
130
130
    static inline double c_mat_elt (const CMat* const mat, const int col, const int row);
131
 
    static void convolve_mat (CMat * result, const CMat* const mata, const CMat* const matb);
 
131
    static void convolve_mat (CMat* result, const CMat* const mata, const CMat* const matb);
132
132
    static void convolve_mat_fun (CMat* result, const CMat* const mata, double (f) (int, int));
133
133
    static int as_idx (const int k, const int l, const int m);
134
134
    static int as_cidx (const int k, const int l);