ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
clipm_math_correlation.c File Reference
#include "clipm_math_correlation.h"
#include "clipm_priv_checks.h"
#include "clipm_compatibility_replacements.h"
#include "clipm_priv_error.h"
#include "clipm_priv_image.h"
#include "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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

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. More...
 
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. More...
 
const clipm_coverage_mode CLIPM_COVERAGE_FULL = ((unsigned) 1 << 3)
 Compute the full result. More...
 
const clipm_coverage_mode CLIPM_COVERAGE_CUSTOM = ((unsigned) 1 << 4)
 Use user-defined output size. More...
 

Macro Definition Documentation

#define _POSIX_C_SOURCE   200112L
#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 
)
#define max (   a,
 
)    ((a) > (b) ? (a) : (b))
#define min (   a,
 
)    ((a) < (b) ? (a) : (b))