CR2RE Pipeline Reference Manual 1.6.8
hdrl_DER_SNR.h
1/* $Id: hdrl_DER_SNR.h,v 0.1 2017-03-02 15:38:44 msalmist Exp $
2 *
3 * This file is part of the HDRL
4 * Copyright (C) 2017 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21/*
22 * $Author: msalmist $
23 * $Date: 2017-03-02 15:38:44 $
24 * $Revision: 0.1 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef HDRL_DER_SNR_H
29#define HDRL_DER_SNR_H
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34
35#include <cpl.h>
36#include "hdrl_types.h"
37
38CPL_BEGIN_DECLS
39
40hdrl_error_t estimate_noise_window(const hdrl_data_t * flux, const cpl_binary * msk,
41 cpl_size start, cpl_size stop, const cpl_size sz);
42
43cpl_image *
44estimate_noise_DER_SNR(const hdrl_data_t * flux_in, const cpl_binary * msk_in,
45 const cpl_array * wavelengths, const cpl_size length,
46 const cpl_size half_window);
47
48CPL_END_DECLS
49
50#endif
CPL_BEGIN_DECLS hdrl_error_t estimate_noise_window(const hdrl_data_t *flux, const cpl_binary *msk, cpl_size start, cpl_size stop, const cpl_size sz)
Estimate the noise in the pixels between [start, stop]. The noise calculation is done using the formu...
Definition: hdrl_DER_SNR.c:89
cpl_image * estimate_noise_DER_SNR(const hdrl_data_t *flux_in, const cpl_binary *msk_in, const cpl_array *wavelengths, const cpl_size length, const cpl_size half_window)
For every pixel in position i in img_arg, the function estimates the noise using the pixels in the wi...
Definition: hdrl_DER_SNR.c:160