ifw-odp 5.0.0
Loading...
Searching...
No Matches
Macros | Functions
clipm_image_signal.c File Reference
#include "ifw/odp/clipm/clipm_image_signal.h"
#include "ifw/odp/clipm/clipm_math.h"
#include "ifw/odp/clipm/clipm_priv_image_signal.h"
#include "ifw/odp/clipm/clipm_priv_checks.h"
#include "ifw/odp/clipm/clipm_compatibility_replacements.h"
#include "ifw/odp/clipm/clipm_priv_array.h"
#include "ifw/odp/clipm/clipm_priv_error.h"
#include "ifw/odp/clipm/clipm_priv_image.h"
#include "ifw/odp/clipm/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.
 
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.
 
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.
 

Macro Definition Documentation

◆ clipm_priv_image_get_barycentre_BODY

#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)