#include <math.h>
#include <gandalf/vision/convolve1D.h>
#include <gandalf/common/misc_error.h>
#include <gandalf/image/image_gl_uchar.h>
#include <gandalf/image/image_gl_ushort.h>
#include <gandalf/image/image_gl_int.h>
#include <gandalf/image/image_gl_uint.h>
#include <gandalf/image/image_gl_float.h>
#include <gandalf/image/image_gl_double.h>
#include <gandalf/image/image_rgb_uchar.h>
#include <gandalf/image/image_rgb_ushort.h>
#include <gandalf/image/image_rgb_int.h>
#include <gandalf/image/image_rgb_uint.h>
#include <gandalf/image/image_rgb_float.h>
#include <gandalf/image/image_rgb_double.h>
#include <gandalf/image/image_rgba_uchar.h>
#include <gandalf/image/image_rgba_ushort.h>
#include <gandalf/image/image_rgba_int.h>
#include <gandalf/image/image_rgba_uint.h>
#include <gandalf/image/image_rgba_float.h>
#include <gandalf/image/image_rgba_double.h>
#include <gandalf/image/image_vfield3D_float.h>
#include <gandalf/image/image_vfield3D_double.h>
#include <gandalf/image/image_vfield3D_int.h>
Defines | |
#define | SHIFT_DOWN_REPEAT(v, s) (((v) < (s)) ? (v) : ((s)-1)) |
#define | SHIFT_UP_REPEAT(v, s) (((v) < 0) ? 0 : (v)) |
#define | SHIFT_IN_REPEAT(v, s) (((v) < 0) ? 0 : (((v) < (s)) ? (v) : ((s)-1))) |
#define | SHIFT_DOWN_CIRCULAR(v, s) (((v) < (s)) ? (v) : ((v)-(s))) |
#define | SHIFT_UP_CIRCULAR(v, s) (((v) < 0) ? ((v)+(s)) : (v)) |
#define | SHIFT_IN_CIRCULAR(v, s) (((v) < 0) ? ((v)+(s)) : (((v) < (s)) ? (v) : ((v)-(s)))) |
Functions | |
Gan_Bool | gan_convolve1D_f (float *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, float *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for float arrays. | |
Gan_Bool | gan_convolve1D_d (double *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, double *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for double arrays. | |
Gan_Bool | gan_convolve1D_i (int *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, int *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for int arrays. | |
Gan_Bool | gan_convolve1D_uc (unsigned char *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, unsigned char *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for integer arrays. | |
Gan_Bool | gan_convolve1D_rgb_uc (unsigned char *source, int sstride, unsigned char *dest, int dstride, Gan_Mask1D *mask, unsigned int dsize) |
1D convolution function for integer RGB arrays. | |
Gan_Bool | gan_convolve1D_rgb_f (float *source, int sstride, float *dest, int dstride, Gan_Mask1D *mask, unsigned int dsize) |
1D convolution function for integer RGB arrays. | |
Gan_Bool | gan_convolve1D_us (unsigned short *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, unsigned short *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for integer arrays. | |
Gan_Bool | gan_convolve1D_ui (unsigned int *source, int sstride, Gan_EdgeBehaviour behaviour, Gan_Bool zero_outside, unsigned int *dest, int dstride, Gan_Mask1D *mask, int dsize) |
1D convolution function for unsigned integer arrays. | |
Gan_Image * | gan_image_convolve1Dx_q (const Gan_Image *image, Gan_ImageChannelType channel, Gan_EdgeBehaviour eEdgeBehaviour, Gan_Mask1D *mask, Gan_Image *dest) |
Convolves an image in the x-direction. | |
Gan_Image * | gan_image_convolve1Dy_q (const Gan_Image *image, Gan_ImageChannelType channel, Gan_EdgeBehaviour eEdgeBehaviour, Gan_Mask1D *mask, Gan_Image *dest) |
Convolves an image in the y-direction. |
Part of: Gandalf Library