-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDCTdenoising.h
44 lines (38 loc) · 1.95 KB
/
DCTdenoising.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Code Copyright (c) 2017, Nicola Pierazzo <nicolapierazzo@gmail.com>,
* Gabriele Facciolo <gfacciol@gmail.com>
* Based on the 2010 article by Guoshen Yu <yu@cmap.polytechnique.fr>,
* Guillermo Sapiro <guille@umn.edu>
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*----------------------- Multiscale DCTdenoising -------------------------*/
// This code implements "Multiscale DCT denoising".
// http://www.ipol.im/pub/art/2017/201
// Copyright, Nicola Pierazzo, Gabriele Facciolo, 2017.
// Please report bugs and/or send comments to G. Facciolo gfacciol@gmail.com
/*---------------------------------------------------------------------------*/
#ifndef DCTDENOISING_DCTDENOISING_HPP
#define DCTDENOISING_DCTDENOISING_HPP
#include "Image.hpp"
imgutils::Image DCTdenoising(const imgutils::Image &noisy, float sigma,
int dct_size, bool adaptive_aggregation = true,
int nthreads = 0);
imgutils::Image DCTdenoisingGuided(const imgutils::Image &noisy,
const imgutils::Image &guide,
float sigma, int dct_size,
bool adaptive_aggregation = true,
int nthreads = 0);
#endif // DCTDENOISING_DCTDENOISING_HPP