BRL-CAD
filter.c File Reference
#include "bu/log.h"
#include "bu/malloc.h"
#include "icv.h"
#include "vmath.h"
Include dependency graph for filter.c:

Go to the source code of this file.

Macros

#define KERN_DEFAULT   3
 

Functions

HIDDEN void get_kernel (ICV_FILTER filter_type, double *kern, double *offset)
 
HIDDEN void get_kernel3 (ICV_FILTER3 filter_type, double *kern, double *offset)
 
int icv_filter (icv_image_t *img, ICV_FILTER filter_type)
 
icv_image_ticv_filter3 (icv_image_t *old_img, icv_image_t *curr_img, icv_image_t *new_img, ICV_FILTER3 filter_type)
 
int icv_fade (icv_image_t *img, double fraction)
 

Detailed Description

This file contains routines for image filtering. This is done mainly using the convolution of images. Both Gray Scale and RGB images are taken care.

Definition in file filter.c.

Macro Definition Documentation

#define KERN_DEFAULT   3

Definition at line 33 of file filter.c.

Referenced by icv_filter(), and icv_filter3().

Function Documentation

HIDDEN void get_kernel ( ICV_FILTER  filter_type,
double *  kern,
double *  offset 
)

Definition at line 38 of file filter.c.

References bu_free(), bu_log(), ICV_FILTER_BOXCAR_AVERAGE, ICV_FILTER_HIGH_PASS, ICV_FILTER_HORIZONTAL_GRAD, ICV_FILTER_LAPLACIAN, ICV_FILTER_LOW_PASS, ICV_FILTER_NULL, and ICV_FILTER_VERTICAL_GRAD.

Referenced by icv_filter().

Here is the call graph for this function:

HIDDEN void get_kernel3 ( ICV_FILTER3  filter_type,
double *  kern,
double *  offset 
)

Definition at line 92 of file filter.c.

References bu_free(), bu_log(), ICV_FILTER3_ANIMATION_SMEAR, ICV_FILTER3_BOXCAR_AVERAGE, ICV_FILTER3_HIGH_PASS, ICV_FILTER3_LOW_PASS, and ICV_FILTER3_NULL.

Referenced by icv_filter3().

Here is the call graph for this function: