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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
/* $Id: hdrl_image_math.h,v 1.6 2013-10-17 15:44:14 jtaylor Exp $
*
* This file is part of the HDRL
* Copyright (C) 2013 European Southern Observatory
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* $Author: jtaylor $
* $Date: 2013-10-17 15:44:14 $
* $Revision: 1.6 $
* $Name: not supported by cvs2svn $
*/
#ifndef HDRL_IMAGE_MATH_H
#define HDRL_IMAGE_MATH_H
#include "hdrl_image.h"
#include "hdrl_types.h"
#include <cpl.h>
CPL_BEGIN_DECLS
hdrl_value hdrl_image_get_sqsum(const hdrl_image *self);
hdrl_value hdrl_image_get_sum(const hdrl_image *self);
double hdrl_image_get_stdev(const hdrl_image *self);
hdrl_value hdrl_image_get_median(const hdrl_image *self);
hdrl_value hdrl_image_get_mean(const hdrl_image *self);
hdrl_value hdrl_image_get_weighted_mean(const hdrl_image *self);
hdrl_value hdrl_image_get_sigclip_mean(const hdrl_image * self,
double kappa_low, double kappa_high,
int niter);
hdrl_value hdrl_image_get_minmax_mean(const hdrl_image * self, double nlow,
double nhigh);
hdrl_image * hdrl_image_div_image_create(const hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_div_image( hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_div_scalar( hdrl_image *self, hdrl_value value);
hdrl_image * hdrl_image_mul_image_create(const hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_mul_image( hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_mul_scalar( hdrl_image *self, hdrl_value value);
hdrl_image * hdrl_image_sub_image_create(const hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_sub_image( hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_sub_scalar( hdrl_image *self, hdrl_value value);
hdrl_image * hdrl_image_add_image_create(const hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_add_image( hdrl_image *self, const hdrl_image *other);
cpl_error_code hdrl_image_add_scalar( hdrl_image *self, hdrl_value value);
hdrl_image * hdrl_image_pow_scalar_create(const hdrl_image *self, const hdrl_value exponent);
cpl_error_code hdrl_image_pow_scalar( hdrl_image *self, const hdrl_value exponent);
hdrl_image * hdrl_image_exp_scalar_create(const hdrl_image *self, const hdrl_value base);
cpl_error_code hdrl_image_exp_scalar( hdrl_image *self, const hdrl_value base);
CPL_END_DECLS
#endif
|