ifw-odp 5.0.0
Loading...
Searching...
No Matches
Macros | Functions | Variables
clipm_math_correlation.c File Reference
#include "ifw/odp/clipm/clipm_math_correlation.h"
#include "ifw/odp/clipm/clipm_priv_checks.h"
#include "ifw/odp/clipm/clipm_compatibility_replacements.h"
#include "ifw/odp/clipm/clipm_priv_error.h"
#include "ifw/odp/clipm/clipm_priv_image.h"
#include "ifw/odp/clipm/clipm_priv_matrix.h"
#include <math.h>

Macros

#define _POSIX_C_SOURCE   200112L
 
#define max(a, b)   ((a) > (b) ? (a) : (b))
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define clipm_math_xcorr_BODY( INTYPE, KERNTYPE, imdata, kdata, outdata, imbox, kbox, cov, imsize, ksize, outsize, coverage_map, norm_to_kernel, INDEXSHIFT, V_ORDER_SIGN)
 

Functions

cpl_size clipm_math_get_coverage_size_1d (cpl_size size1, cpl_size size2, cpl_size custom_xy_outsize, clipm_coverage_mode cov)
 Predict the output size of a signal-cross-operation using a certain coverage mode.
 
cpl_error_code clipm_math_get_coverage_size (const cpl_size *size1, const cpl_size *size2, const cpl_size *custom_xy_outsize, cpl_size *out_size, int ndims, clipm_coverage_mode cov)
 Predict the output size of a multi-dimensional signal-cross-operation using a certain coverage mode.
 
cpl_matrix * clipm_math_xcorr_image (const cpl_image *image1, const cpl_image *image2, const cpl_size *window1, const cpl_size *window2, clipm_coverage_mode cov, const cpl_size *custom_xy_outsize, cpl_matrix **overlap_map)
 Cross-correlate 2 images or image windows.
 
cpl_matrix * clipm_math_xcorr_matrix (const cpl_matrix *m1, const cpl_matrix *m2, clipm_coverage_mode cov, const cpl_size *custom_xy_outsize, cpl_matrix **overlap_map)
 Cross-correlate 2 matrices.
 
cpl_matrix * clipm_math_normxcorr_image (const cpl_image *image1, const cpl_image *image2, const cpl_size *window1, const cpl_size *window2, clipm_coverage_mode cov, const cpl_size *custom_xy_outsize)
 Normalized cross-correlation of 2 images or image windows.
 
cpl_matrix * clipm_math_normxcorr_matrix (const cpl_matrix *m1, const cpl_matrix *m2, clipm_coverage_mode cov, const cpl_size *custom_xy_outsize)
 Normalized cross-correlation of 2 matrices.
 
cpl_image * clipm_math_conv_image_matrix (const cpl_image *image, const cpl_matrix *kernelmat, const cpl_size *im_window, clipm_coverage_mode cov, const cpl_size *custom_xy_outsize, int norm_to_kernel, cpl_matrix **overlap_map)
 Convolve an image with a matrix kernel.
 

Variables

const clipm_coverage_mode CLIPM_COVERAGE_VALID = ((unsigned) 1 << 1)
 Return the portion of the cross-operation that is computed without the zero-padded edges.
 
const clipm_coverage_mode CLIPM_COVERAGE_SAME = ((unsigned) 1 << 2)
 Returns the central part of the result that is the same size as the first input signal.
 
const clipm_coverage_mode CLIPM_COVERAGE_FULL = ((unsigned) 1 << 3)
 Compute the full result.
 
const clipm_coverage_mode CLIPM_COVERAGE_CUSTOM = ((unsigned) 1 << 4)
 Use user-defined output size.
 

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200112L

◆ clipm_math_xcorr_BODY

#define clipm_math_xcorr_BODY ( INTYPE,
KERNTYPE,
imdata,
kdata,
outdata,
imbox,
kbox,
cov,
imsize,
ksize,
outsize,
coverage_map,
norm_to_kernel,
INDEXSHIFT,
V_ORDER_SIGN )

◆ max

#define max ( a,
b )   ((a) > (b) ? (a) : (b))

◆ min

#define min ( a,
b )   ((a) < (b) ? (a) : (b))