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

« back to all changes in this revision

Viewing changes to core/libs/dimg/filters/sharp/matrix.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-04-29
7
7
 * Description : refocus deconvolution matrix implementation.
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
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
122
122
    static void print_c_mat (const CMat* const mat);
123
123
    static void print_matrix (Mat* matrix);
124
124
 
125
 
    static Mat* allocate_matrix (int nrows, int ncols);
 
125
    static Mat*  allocate_matrix (int nrows, int ncols);
 
126
    static CMat* allocate_c_mat (const int radius);
 
127
 
126
128
    static double* mat_eltptr (Mat* mat, const int r, const int c);
127
 
    static double mat_elt (const Mat* mat, const int r, const int c);
128
 
    static CMat* allocate_c_mat (const int radius);
 
129
    static double  mat_elt (const Mat* mat, const int r, const int c);
 
130
 
129
131
    static inline double* c_mat_eltptr (CMat* mat, const int col, const int row);
130
 
    static inline double c_mat_elt (const CMat* const mat, const int col, const int row);
 
132
    static inline double  c_mat_elt (const CMat* const mat, const int col, const int row);
 
133
 
131
134
    static void convolve_mat (CMat* result, const CMat* const mata, const CMat* const matb);
132
135
    static void convolve_mat_fun (CMat* result, const CMat* const mata, double (f) (int, int));
 
136
 
133
137
    static int as_idx (const int k, const int l, const int m);
134
138
    static int as_cidx (const int k, const int l);
 
139
 
135
140
    static Mat* make_s_matrix (CMat* mat, int m, double noise_factor);
136
141
    static Mat* make_s_cmatrix (CMat* mat, int m, double noise_factor);
 
142
 
137
143
    static double correlation (const int x, const int y, const double gamma, const double musq);
138
 
    static Mat* copy_vec (const CMat* const mat, const int m);
139
 
    static Mat* copy_cvec (const CMat* const mat, const int m);
 
144
 
 
145
    static Mat*  copy_vec (const CMat* const mat, const int m);
 
146
    static Mat*  copy_cvec (const CMat* const mat, const int m);
140
147
    static CMat* copy_cvec2mat (const Mat* const cvec, const int m);
141
148
    static CMat* copy_vec2mat (const Mat* const cvec, const int m);
142
149
    static CMat* compute_g (const CMat* const convolution, const int m, const double gamma,
143
150
                            const double noise_factor, const double musq, const bool symmetric);
 
151
 
144
152
    static double circle_integral (const double x, const double radius);
145
153
    static double circle_intensity (const int x, const int y, const double radius);
146
154