ifw-odp  2.0.0-alpha
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
clipm_image_signal.c File Reference
#include "clipm_image_signal.h"
#include "clipm_math.h"
#include "clipm_priv_image_signal.h"
#include "clipm_priv_checks.h"
#include "clipm_compatibility_replacements.h"
#include "clipm_priv_array.h"
#include "clipm_priv_error.h"
#include "clipm_priv_image.h"
#include "clipm_priv_math.h"
#include <float.h>
#include <limits.h>

Macros

#define clipm_priv_image_get_barycentre_BODY(TYPE)
 

Functions

double clipm_image_signal_estimate_bg_in_region (const cpl_image *img, const cpl_size window_xxyy[4], double *out_sigma, cpl_size *out_nused)
 Estimate the background in a small image region. More...
 
double clipm_image_signal_estimate_fwhm_round (const cpl_image *img, double x_peakpos, double y_peakpos, double bg_level)
 Estimate the FWHM of a round object. More...
 
cpl_error_code clipm_image_signal_get_barycentre (const cpl_image *img, const cpl_size window_xxyy[4], double bg_level, double lower_cutlevel, double *out_xy_centre, double *out_weight, cpl_size *out_nused)
 Compute the barycentre of an object. More...
 

Macro Definition Documentation

#define clipm_priv_image_get_barycentre_BODY (   TYPE)
Value:
do { \
clipm_priv_image_LOOP_GOOD_DATA_CONST( TYPE, imsize, wdwsize, \
data_start, badp_start, \
\
, \
if ((double)data[x] >= lower_cutlevel) \
{ \
val = (double)data[x] - bg_level; \
sum += val; \
moment[0] += val * x; \
moment[1] += val * y; \
nused++; \
} \
ngood++; \
, \
\
); \
} while (0)
#define clipm_priv_image_LOOP_GOOD_DATA_CONST(TYPE, IMSIZE_XY, WDWSIZE_XY, DATA_WDW, BADP_WDW, YACTION, XACTION, XACTION_ONLY_WITH_BPM)
Loop over a pixel buffer, only regarding good pixels.
Definition: clipm_priv_image_signal.h:50